/* ========================================================================
   dannypphoto.com — 2026 rebuild
   Daniel Polito Commercial Filmmaker
   Dark editorial cinematic.
   ======================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0A0A0A;
  --bg-2: #131313;
  --bg-3: #1C1C1C;
  --border: #1F1F1F;
  --border-2: #2A2A2A;
  --text: #F5F1EA;
  --text-2: #B8B2A9;
  --text-3: #807A71;
  --accent: #E89B5C;
  --accent-2: #F2B27A;
  --max-width: 1280px;
  --gutter: 32px;
  --gutter-mobile: 20px;
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; transition: color .2s ease, opacity .2s ease; }
a:hover { color: var(--accent); }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: clamp(40px, 6vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 56px); }
h3 { font-size: clamp(22px, 2.4vw, 32px); }
h4 { font-size: clamp(18px, 1.6vw, 22px); font-weight: 600; }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

p { color: var(--text-2); }
p + p { margin-top: 1em; }

.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--text-2); line-height: 1.5; max-width: 60ch; }

strong, b { color: var(--text); font-weight: 600; }

::selection { background: var(--accent); color: var(--bg); }

/* ===== LAYOUT ===== */
.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
@media (max-width: 768px) { .wrap { padding: 0 var(--gutter-mobile); } }

section { padding: clamp(64px, 9vw, 128px) 0; }
section.tight { padding: clamp(40px, 6vw, 80px) 0; }

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
}
.nav.scrolled { background: rgba(10,10,10,0.85); border-bottom-color: var(--border); padding: 12px 0; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav-logo {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 15px; color: var(--text-2); }
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.is-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    background: rgba(10,10,10,0.97);
    border-bottom: 1px solid var(--border);
  }
  .nav.is-open .nav-links a { padding: 14px var(--gutter-mobile); }
  .nav.is-open .nav-cta { margin: 12px var(--gutter-mobile); }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #1A0F00;
}
.btn-primary:hover { background: var(--accent-2); color: #1A0F00; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-2);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--border-2);
  padding-bottom: 4px;
  transition: color .2s ease, border-color .2s ease;
}
.btn-link:hover { color: var(--accent); border-color: var(--accent); }
.btn-link .arrow { transition: transform .2s ease; }
.btn-link:hover .arrow { transform: translateX(4px); }

/* ===== HERO (homepage) ===== */
.hero {
  position: relative;
  min-height: clamp(640px, 88vh, 920px);
  padding-top: 96px;
  padding-bottom: 96px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 177.77vh;
  min-width: 100%;
  height: 56.25vw;
  min-height: 100%;
  transform: translate(-50%, -50%);
  border: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,0.45) 0%, rgba(10,10,10,0.55) 60%, rgba(10,10,10,0.95) 100%),
    linear-gradient(90deg, rgba(10,10,10,0.65) 0%, rgba(10,10,10,0.15) 60%, rgba(10,10,10,0.0) 100%);
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
}
.hero h1 {
  font-style: italic;
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero .lead { margin-top: 24px; max-width: 60ch; color: var(--text); opacity: 0.92; }
.hero-cta { display: flex; gap: 16px; margin-top: 40px; flex-wrap: wrap; align-items: center; }

/* ===== PAGE HERO (non-homepage) ===== */
.page-hero {
  padding-top: 168px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero h1 { font-style: italic; font-weight: 500; }
.page-hero .lead { margin-top: 22px; }
.page-hero-cta { margin-top: 36px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ===== CREDIBILITY STRIP ===== */
.cred-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 28px 0;
}
.cred-strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  text-align: center;
}
.cred-strip-inner span { white-space: nowrap; }
.cred-strip-inner span + span::before {
  content: "·";
  margin-right: 28px;
  color: var(--border-2);
}
@media (max-width: 768px) {
  .cred-strip-inner span + span::before { margin-right: 14px; }
}

/* ===== THREE-COLUMN ===== */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.three-col h3 { margin-bottom: 16px; font-style: italic; }
.three-col p { margin-bottom: 20px; }
.three-col .col-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--accent); }
.three-col .col-cta:hover { color: var(--accent-2); }
@media (max-width: 880px) {
  .three-col { grid-template-columns: 1fr; gap: 40px; }
}

/* ===== SECTION HEADER ===== */
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { font-style: italic; }
.section-head p { color: var(--text-2); max-width: 32ch; }

/* ===== FEATURED WORK / CARDS ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
@media (max-width: 768px) { .work-grid { grid-template-columns: 1fr; gap: 24px; } }

.work-card {
  position: relative;
  display: block;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: border-color .25s ease, transform .25s ease;
}
.work-card:hover { border-color: var(--border-2); transform: translateY(-2px); color: inherit; }
.work-card-thumb {
  aspect-ratio: 16 / 9;
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}
.work-card-thumb iframe, .work-card-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  border: 0;
  pointer-events: none;
}
.work-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0) 50%, rgba(10,10,10,0.7) 100%);
}
.work-card-meta { padding: 24px 28px 28px; }
.work-card-meta .eyebrow { color: var(--accent); margin-bottom: 8px; }
.work-card-meta h3 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 8px; }
.work-card-meta p { color: var(--text-2); margin-bottom: 16px; font-size: 15px; }
.work-card-meta .arrow-link { font-size: 14px; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }

/* ===== PROCESS STRIP ===== */
.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}
.process-step .step-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 16px;
}
.process-step h4 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin-bottom: 10px; }
.process-step p { font-size: 15px; }
@media (max-width: 880px) { .process { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } }
@media (max-width: 520px) { .process { grid-template-columns: 1fr; } }

/* ===== ABOUT TEASER ===== */
.about-teaser { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.about-teaser img { width: 100%; height: auto; border-radius: 4px; }
.about-teaser h2 { font-style: italic; margin-bottom: 24px; }
.about-teaser p { font-size: 18px; }
@media (max-width: 880px) { .about-teaser { grid-template-columns: 1fr; gap: 32px; } }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { font-style: italic; text-align: center; margin-bottom: 40px; }
.faq-item {
  border-top: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
  padding: 28px 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(20px, 2vw, 26px);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  letter-spacing: -0.01em;
}
.faq-q:hover { color: var(--accent); }
.faq-q .icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  transition: transform .25s ease;
  color: var(--text-3);
}
.faq-item.is-open .faq-q .icon { transform: rotate(45deg); color: var(--accent); }
.faq-item.is-open .faq-q { color: var(--accent); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s ease;
}
.faq-a-inner { padding: 0 0 28px; }
.faq-a-inner p { color: var(--text-2); }
.faq-item.is-open .faq-a { max-height: 500px; }

/* ===== FINAL CTA BAND ===== */
.cta-band { text-align: center; padding: clamp(80px, 12vw, 144px) 0; border-top: 1px solid var(--border); }
.cta-band h2 { font-style: italic; margin-bottom: 20px; }
.cta-band p { color: var(--text-2); max-width: 50ch; margin: 0 auto 32px; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); padding: 48px 0 32px; color: var(--text-3); font-size: 14px; }
.footer-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 32px;
}
.footer-logo { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--text); letter-spacing: -0.01em; }
.footer-email { text-align: center; color: var(--text-2); font-size: 15px; }
.footer-social { text-align: right; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; }
.footer-bottom span { color: var(--text-3); }
@media (max-width: 720px) {
  .footer-row { grid-template-columns: 1fr; gap: 18px; text-align: left; }
  .footer-email, .footer-social { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 6px; }
}

/* ===== SERVICES PAGE ===== */
.service-tiles { display: grid; grid-template-columns: 1fr; gap: 24px; }
.service-tile {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  background: var(--bg-2);
  transition: border-color .25s ease;
}
.service-tile:hover { border-color: var(--border-2); }
.service-tile h3 { font-style: italic; margin-bottom: 16px; }
.service-tile p { font-size: 16px; margin-bottom: 14px; }
.service-tile .deliv-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-3);
  margin-bottom: 12px;
}
.service-tile ul { list-style: none; padding: 0; }
.service-tile ul li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 8px;
  color: var(--text-2);
  font-size: 15px;
}
.service-tile ul li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--accent);
}
@media (max-width: 880px) {
  .service-tile { grid-template-columns: 1fr; gap: 24px; padding: 28px; }
}

.included-list { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 48px; max-width: 880px; }
.included-list li {
  list-style: none;
  position: relative;
  padding-left: 24px;
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.5;
}
.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}
@media (max-width: 720px) { .included-list { grid-template-columns: 1fr; } }

.investment-block {
  border-top: 1px solid var(--border);
  padding-top: 64px;
  margin-top: 24px;
  text-align: center;
}
.investment-block p { font-size: clamp(22px, 2.6vw, 30px); font-family: var(--serif); color: var(--text); max-width: 60ch; margin: 0 auto; line-height: 1.4; font-weight: 400; }
.investment-block .price { color: var(--accent); font-weight: 600; }

/* ===== ABOUT PAGE ===== */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding-top: 168px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--border);
}
.about-hero img { width: 100%; height: auto; border-radius: 4px; }
.about-hero h1 { font-style: italic; font-weight: 500; }
.about-hero .lead { margin-top: 20px; }
.about-hero .page-hero-cta { margin-top: 32px; }
@media (max-width: 880px) {
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
  .about-hero img { order: 2; }
}

.about-section { max-width: 720px; }
.about-section + .about-section { margin-top: 56px; }
.about-section h2 { font-size: clamp(22px, 2vw, 28px); font-style: italic; margin-bottom: 16px; color: var(--text); }
.about-section p { font-size: 18px; }
.about-section p + p { margin-top: 16px; }

/* ===== CONTACT PAGE ===== */
.contact-hero { padding-top: 168px; padding-bottom: 56px; }
.contact-hero h1 { font-style: italic; }
.contact-hero .lead { margin-top: 18px; }

.cal-embed {
  margin-top: 24px;
  margin-bottom: 64px;
  padding: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  min-height: 640px;
}
.cal-embed iframe { width: 100%; min-height: 640px; border: 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }

.form-block h2, .skip-block h2 { font-size: clamp(22px, 2vw, 28px); font-style: italic; margin-bottom: 18px; }
.form-block p, .skip-block p { color: var(--text-2); margin-bottom: 18px; }

.form { display: grid; gap: 16px; }
.form label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-3);
  margin-bottom: 6px;
}
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  border-radius: 4px;
  transition: border-color .2s ease;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--accent); }
.form textarea { resize: vertical; min-height: 96px; }
.form button { justify-self: start; margin-top: 8px; }
.form-note { color: var(--text-3); font-size: 13px; margin-top: 12px; }
.form-success {
  margin-top: 16px;
  padding: 14px 16px;
  background: rgba(232, 155, 92, 0.1);
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 15px;
  display: none;
}
.form-success.is-visible { display: block; }

.skip-block .row { display: flex; flex-direction: column; gap: 12px; }
.skip-block a { color: var(--text); border-bottom: 1px solid var(--border-2); padding-bottom: 4px; transition: color .2s ease, border-color .2s ease; align-self: start; }
.skip-block a:hover { color: var(--accent); border-color: var(--accent); }

/* ===== CASE STUDY PAGE ===== */
.case-hero {
  padding-top: 96px;
  background: #000;
}
.case-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  position: relative;
}
.case-video iframe { width: 100%; height: 100%; border: 0; }

.case-meta {
  padding: clamp(56px, 8vw, 96px) 0 clamp(56px, 8vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 80px;
  border-bottom: 1px solid var(--border);
}
.case-meta .eyebrow { margin-bottom: 14px; color: var(--accent); }
.case-meta h1 { font-size: clamp(36px, 4.5vw, 60px); font-style: italic; margin-bottom: 28px; }
.case-meta .brief p { font-size: 18px; color: var(--text-2); }
.case-meta .brief p + p { margin-top: 14px; }
.case-meta-side h4 {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: var(--sans);
  font-weight: 500;
  margin-bottom: 16px;
}
.case-meta-side ul { list-style: none; }
.case-meta-side li { padding: 10px 0; border-top: 1px solid var(--border); color: var(--text-2); font-size: 15px; }
.case-meta-side li:first-child { border-top: 0; padding-top: 0; }
.case-meta-side li strong { display: inline-block; min-width: 110px; color: var(--text-3); font-weight: 500; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.case-meta-side .deliv li { padding-left: 18px; position: relative; }
.case-meta-side .deliv li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
@media (max-width: 880px) { .case-meta { grid-template-columns: 1fr; gap: 48px; } }

/* ===== WORK INDEX ===== */
.work-index .work-grid { margin-top: 48px; }

/* ===== UTILS ===== */
.center { text-align: center; }
.spacer-l { height: 80px; }
.divider { height: 1px; background: var(--border); margin: 0; border: 0; }

/* ===== ANIMATIONS ===== */
.fade-in { opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .8s ease; }
.fade-in.is-visible { opacity: 1; transform: none; }

/* Page fade-in on initial load */
body { opacity: 0; transition: opacity .55s ease; }
body.is-loaded { opacity: 1; }

/* Subtle parallax on hero (translates with scroll) */
.hero-bg { will-change: transform; }
.case-video { will-change: transform; }

/* Custom cursor (desktop / fine pointer only). Hollow ring that grows on hover. System cursor stays underneath. */
@media (hover: hover) and (pointer: fine) {
  .cursor {
    position: fixed;
    top: 0; left: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--text);
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width .25s ease, height .25s ease, background .25s ease, opacity .25s ease, border-color .25s ease;
    z-index: 9999;
    will-change: transform;
    opacity: 0.55;
    backdrop-filter: invert(0.05);
  }
  .cursor.is-hover {
    width: 56px;
    height: 56px;
    background: rgba(232, 155, 92, 0.18);
    border-color: var(--accent);
    opacity: 0.85;
  }
  .cursor.is-down { width: 22px; height: 22px; opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .fade-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  body { opacity: 1; transition: none; }
  .hero-bg, .case-video { transform: none !important; }
  .cursor { display: none; }
}
