/*
Theme Name: Devebhoomi Frames
Theme URI: https://devbhoomiframes.com/
Author: Devebhoomi Frames
Author URI: https://devbhoomiframes.com/
Description: A cinematic, editable portfolio theme for Himalayan photography and filmmaking.
Version: 1.4.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: devebhoomi-frames
Tags: portfolio, photography, one-column, custom-logo, custom-menu, featured-images, full-width-template, theme-options
*/

:root {
  --df-background: #110e0c;
  --df-foreground: #f5f0e7;
  --df-card: #1a1613;
  --df-primary: #d8ad66;
  --df-primary-dark: #17110b;
  --df-secondary: #211c18;
  --df-muted: #29231f;
  --df-muted-foreground: #a99c8b;
  --df-border: #342c27;
  --df-container: 1280px;
  --df-radius: 3px;
  --df-display: "Fraunces", Georgia, serif;
  --df-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --df-header-height: 80px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--df-background);
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--df-background);
  color: var(--df-foreground);
  font-family: var(--df-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.df-menu-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

button,
[role="button"] {
  cursor: pointer;
}

::selection {
  background: var(--df-primary);
  color: var(--df-primary-dark);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--df-background);
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--df-border);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--df-muted-foreground);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 12px;
  left: 12px;
  width: auto;
  height: auto;
  padding: 12px 16px;
  clip: auto;
  background: #fff;
  color: #111;
}

.df-site {
  position: relative;
  min-height: 100vh;
}

.df-site::after {
  position: fixed;
  z-index: 60;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

.df-container {
  width: min(100% - 40px, var(--df-container));
  margin-inline: auto;
}

.df-container--narrow {
  width: min(100% - 40px, 780px);
  margin-inline: auto;
}

.df-display {
  font-family: var(--df-display);
  font-optical-sizing: auto;
}

.df-eyebrow {
  margin: 0;
  color: var(--df-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.38em;
  line-height: 1.4;
  text-transform: uppercase;
}

.df-section-title {
  margin: 16px 0 0;
  font-family: var(--df-display);
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.df-muted {
  color: var(--df-muted-foreground);
}

.df-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 13px 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--df-primary);
  color: var(--df-primary-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: gap 300ms ease, background 300ms ease, color 300ms ease, border-color 300ms ease;
}

.df-button:hover,
.df-button:focus-visible {
  gap: 20px;
  background: #e2bb79;
}

.df-button--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  backdrop-filter: blur(10px);
}

.df-button--ghost:hover,
.df-button--ghost:focus-visible {
  background: #fff;
  color: #111;
}

.df-button__line {
  width: 32px;
  height: 1px;
  background: currentColor;
  transition: width 300ms ease;
}

.df-button:hover .df-button__line {
  width: 48px;
}

.df-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 800ms ease, transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.df-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.df-delay-1 { transition-delay: 80ms; }
.df-delay-2 { transition-delay: 160ms; }
.df-delay-3 { transition-delay: 240ms; }

/* Header */
.df-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid var(--df-border);
  background: rgba(17, 14, 12, 0.88);
  backdrop-filter: blur(18px);
  transition: background 500ms ease, border-color 500ms ease, box-shadow 500ms ease;
}

.home .df-header:not(.is-scrolled):not(.is-open) {
  border-color: transparent;
  background: transparent;
  backdrop-filter: none;
}

.df-header.is-scrolled {
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.15);
}

.df-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--df-header-height);
}

.df-brand {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.df-brand__logo {
  max-width: 220px;
  max-height: 48px;
  width: auto;
}

.df-brand__name {
  font-family: var(--df-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.df-brand__tagline {
  margin-top: 7px;
  color: rgba(245, 240, 231, 0.58);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.31em;
  text-transform: uppercase;
}

.df-nav__list,
.df-nav .menu {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.df-nav a {
  position: relative;
  display: block;
  padding: 10px 0;
  color: rgba(245, 240, 231, 0.76);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 250ms ease;
}

.df-nav a:hover,
.df-nav a:focus-visible,
.df-nav .current-menu-item > a,
.df-nav .current-menu-parent > a,
.df-nav .current_page_item > a {
  color: var(--df-primary);
}

.df-nav li {
  position: relative;
}

.df-nav .sub-menu {
  position: absolute;
  top: calc(100% - 2px);
  left: -20px;
  visibility: hidden;
  min-width: 210px;
  padding: 12px 20px;
  margin: 0;
  border: 1px solid var(--df-border);
  background: rgba(17, 14, 12, 0.97);
  opacity: 0;
  list-style: none;
  transform: translateY(8px);
  transition: visibility 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.df-nav li:hover > .sub-menu,
.df-nav li:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.df-nav .sub-menu a {
  padding: 9px 0;
  white-space: nowrap;
}

.df-menu-toggle {
  position: relative;
  z-index: 2;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--df-foreground);
}

.df-menu-toggle span,
.df-menu-toggle::before,
.df-menu-toggle::after {
  position: absolute;
  left: 11px;
  width: 22px;
  height: 1px;
  content: "";
  background: currentColor;
  transition: transform 250ms ease, opacity 250ms ease;
}

.df-menu-toggle::before { top: 15px; }
.df-menu-toggle span { top: 22px; }
.df-menu-toggle::after { top: 29px; }

.df-header.is-open .df-menu-toggle::before {
  top: 22px;
  transform: rotate(45deg);
}

.df-header.is-open .df-menu-toggle::after {
  top: 22px;
  transform: rotate(-45deg);
}

.df-header.is-open .df-menu-toggle span {
  opacity: 0;
}

/* Hero */
.df-hero,
.df-page-hero {
  position: relative;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.df-hero {
  height: 100dvh;
  min-height: 650px;
}

.df-page-hero {
  display: flex;
  align-items: flex-end;
  height: 78dvh;
  min-height: 520px;
}

.df-page-hero--compact {
  height: 60dvh;
  min-height: 430px;
}

.df-hero__media,
.df-page-hero__media {
  position: absolute;
  inset: 0;
}

.df-hero__media img,
.df-hero__media video,
.df-page-hero__media img,
.df-page-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.df-hero__media img {
  animation: df-kenburns 24s ease-out forwards;
}

.df-hero__media::after,
.df-page-hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.28) 45%, rgba(0, 0, 0, 0.9)),
    linear-gradient(to right, rgba(0, 0, 0, 0.45), transparent 70%);
}

.df-page-hero__media::after {
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.38) 55%, rgba(0, 0, 0, 0.34));
}

.df-hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  height: 100%;
  padding: 100px 20px 70px;
  text-align: center;
}

.df-hero__title {
  max-width: 1200px;
  margin: 22px 0 0;
  font-family: var(--df-display);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  font-weight: 300;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.df-hero__subtitle {
  max-width: 720px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-family: var(--df-display);
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.5;
  white-space: pre-line;
}

.df-hero__actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 42px;
}

.df-text-link {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  font-weight: 500;
  transition: color 250ms ease;
}

.df-text-link:hover,
.df-text-link:focus-visible {
  color: var(--df-primary);
}

.df-scroll-cue {
  position: absolute;
  z-index: 3;
  bottom: 30px;
  left: 50%;
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  transform: translateX(-50%);
}

.df-scroll-cue::after {
  position: absolute;
  top: 7px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  content: "";
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
  animation: df-scroll 1.8s ease-in-out infinite;
}

.df-page-hero__content {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
}

.df-page-hero__title {
  max-width: 1000px;
  margin: 16px 0 0;
  font-family: var(--df-display);
  font-size: clamp(3.25rem, 8vw, 6rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  line-height: 0.96;
}

/* Homepage work */
.df-work {
  padding: 120px 0 128px;
}

.df-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 64px;
}

.df-section-heading__copy {
  max-width: 390px;
  margin: 0;
  color: var(--df-muted-foreground);
  font-size: 14px;
  line-height: 1.8;
}

.df-work-list {
  display: grid;
  gap: 32px;
}

.df-work-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 420px;
  border-radius: var(--df-radius);
  background: var(--df-card);
}

.df-work-card__media {
  position: absolute;
  inset: 0;
}

.df-work-card__media img,
.df-work-card__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.df-work-card:hover .df-work-card__media img,
.df-work-card:hover .df-work-card__media video {
  transform: scale(1.055);
}

.df-work-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.22) 65%, transparent);
}

.df-work-card__content {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 48px;
}

.df-work-card__title {
  display: block;
  margin: 10px 0 0;
  color: #fff;
  font-family: var(--df-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
}

.df-work-card__description {
  display: block;
  max-width: 480px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.df-work-card__content > .df-eyebrow {
  display: block;
}

.df-work-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  transition: gap 300ms ease, color 300ms ease;
}

.df-work-card__link::after {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--df-primary);
  transition: width 300ms ease;
}

.df-work-card:hover .df-work-card__link {
  gap: 18px;
  color: var(--df-primary);
}

.df-work-card:hover .df-work-card__link::after {
  width: 54px;
}

/* Manifesto and CTA */
.df-cinematic-band {
  position: relative;
  overflow: hidden;
  padding: 145px 0;
  background: #000;
  text-align: center;
}

.df-cinematic-band__media {
  position: absolute;
  inset: 0;
  opacity: 0.28;
}

.df-cinematic-band__media img,
.df-cinematic-band__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.df-cinematic-band__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.62);
}

.df-cinematic-band__content {
  position: relative;
  z-index: 2;
  width: min(100% - 40px, 900px);
  margin-inline: auto;
}

.df-manifesto {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--df-display);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
}

.df-cinematic-band__signature {
  margin: 30px 0 0;
  color: var(--df-primary);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
}

.df-final-cta .df-cinematic-band__media {
  opacity: 0.34;
}

.df-final-cta .df-cinematic-band__media::after {
  background: linear-gradient(to top, #000, rgba(0, 0, 0, 0.6));
}

.df-final-cta__title {
  margin: 0;
  font-family: var(--df-display);
  font-size: clamp(2.6rem, 6vw, 4.1rem);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.df-final-cta__copy {
  max-width: 570px;
  margin: 24px auto 0;
  color: rgba(255, 255, 255, 0.68);
}

.df-final-cta .df-button {
  margin-top: 36px;
}

/* Client carousel */
.df-clients {
  padding: 112px 0 122px;
}

.df-clients__heading {
  margin-bottom: 48px;
  text-align: center;
}

.df-logo-carousel {
  position: relative;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}

.df-logo-carousel:active {
  cursor: grabbing;
}

.df-logo-carousel::before,
.df-logo-carousel::after {
  position: absolute;
  z-index: 2;
  top: 0;
  bottom: 0;
  width: 100px;
  pointer-events: none;
  content: "";
}

.df-logo-carousel::before {
  left: 0;
  background: linear-gradient(to right, var(--df-background), transparent);
}

.df-logo-carousel::after {
  right: 0;
  background: linear-gradient(to left, var(--df-background), transparent);
}

.df-logo-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 64px;
  padding: 24px 0;
  will-change: transform;
}

.df-client-logo {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 13px;
  min-width: 150px;
  color: rgba(245, 240, 231, 0.56);
  transition: color 250ms ease, opacity 250ms ease;
}

.df-client-logo:hover {
  color: var(--df-foreground);
}

.df-client-logo::before {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: rgba(216, 173, 102, 0.72);
}

.df-client-logo img {
  width: auto;
  max-width: 180px;
  height: 58px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.4);
  opacity: 0.68;
  transition: filter 250ms ease, opacity 250ms ease;
}

.df-client-logo:hover img {
  filter: none;
  opacity: 1;
}

.df-client-logo__name {
  font-family: var(--df-display);
  font-size: 28px;
  font-style: italic;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

/* Portfolio */
.df-portfolio-intro {
  padding: 112px 0;
}

.df-portfolio-intro__content {
  font-family: var(--df-display);
  font-size: clamp(1.55rem, 3vw, 2rem);
  font-weight: 300;
  line-height: 1.55;
}

.df-portfolio-intro__content > *:first-child {
  margin-top: 0;
}

.df-portfolio-intro__content > *:last-child {
  margin-bottom: 0;
}

.df-portfolio-gallery-section {
  padding-bottom: 128px;
}

.df-project-group + .df-project-group {
  margin-top: 76px;
}

.df-project-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.df-project-heading__title {
  margin: 0;
  font-family: var(--df-display);
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
  font-weight: 300;
}

.df-project-heading__excerpt {
  max-width: 520px;
  margin: 0;
  color: var(--df-muted-foreground);
  font-size: 14px;
}

.df-project-heading--visually-quiet .df-project-heading__title,
.df-project-heading--visually-quiet .df-project-heading__excerpt {
  font-size: 0;
  margin: 0;
}

.df-project-heading--visually-quiet {
  margin-bottom: 0;
}

.df-masonry {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: minmax(150px, 18vw);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.df-gallery-item {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 230px;
  padding: 0;
  border: 0;
  border-radius: var(--df-radius);
  background: var(--df-card);
  color: #fff;
  text-align: left;
}

.df-gallery-item--wide {
  grid-column: span 2;
}

.df-gallery-item--tall {
  grid-row: span 2;
}

.df-gallery-item--square {
  aspect-ratio: 1;
}

.df-gallery-item img,
.df-gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1200ms cubic-bezier(0.22, 1, 0.36, 1);
}

.df-gallery-video-placeholder {
  position: absolute;
  inset: 0;
  display: block;
  background-position: center;
  background-size: cover;
}

.df-gallery-video-placeholder::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.28);
}

.df-gallery-item:hover img,
.df-gallery-item:hover video {
  transform: scale(1.055);
}

.df-gallery-item::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent 60%);
  transition: opacity 400ms ease;
}

.df-gallery-item:hover::after,
.df-gallery-item:focus-visible::after {
  opacity: 1;
}

.df-gallery-item__caption {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 14px;
  left: 16px;
  opacity: 0;
  font-family: var(--df-display);
  font-size: 14px;
  font-style: italic;
  transform: translateY(7px);
  transition: opacity 400ms ease, transform 400ms ease;
}

.df-gallery-item:hover .df-gallery-item__caption,
.df-gallery-item:focus-visible .df-gallery-item__caption {
  opacity: 0.9;
  transform: translateY(0);
}

.df-gallery-item__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  font-size: 14px;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.df-lightbox {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 85px 40px;
  background: rgba(0, 0, 0, 0.96);
  opacity: 0;
  backdrop-filter: blur(10px);
  transition: opacity 250ms ease;
}

.df-lightbox.is-open {
  display: flex;
  opacity: 1;
}

.df-lightbox__figure {
  max-width: min(92vw, 1500px);
  margin: 0;
  text-align: center;
}

.df-lightbox__media img,
.df-lightbox__media video,
.df-lightbox__media iframe {
  max-width: 92vw;
  max-height: 80vh;
  width: auto;
  margin-inline: auto;
  object-fit: contain;
}

.df-lightbox__media iframe {
  width: min(82vw, 1200px);
  height: min(46vw, 675px);
  border: 0;
}

.df-lightbox__caption {
  margin-top: 16px;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--df-display);
  font-style: italic;
}

.df-lightbox__close,
.df-lightbox__prev,
.df-lightbox__next {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 24px;
  line-height: 1;
  transition: background 250ms ease, color 250ms ease;
}

.df-lightbox__close:hover,
.df-lightbox__prev:hover,
.df-lightbox__next:hover {
  background: #fff;
  color: #000;
}

.df-lightbox__close {
  top: 20px;
  right: 20px;
}

.df-lightbox__prev,
.df-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.df-lightbox__prev { left: 24px; }
.df-lightbox__next { right: 24px; }

.df-portfolio-cta {
  padding: 115px 0 125px;
  border-top: 1px solid var(--df-border);
  background: rgba(33, 28, 24, 0.38);
  text-align: center;
}

.df-portfolio-cta__copy {
  max-width: 610px;
  margin: 22px auto 0;
  color: var(--df-muted-foreground);
}

.df-portfolio-cta .df-button {
  margin-top: 36px;
}

/* About */
.df-about-story {
  padding: 116px 0 126px;
}

.df-about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
}

.df-prose {
  color: var(--df-muted-foreground);
  font-size: 15px;
  line-height: 1.9;
}

.df-prose h2,
.df-prose h3,
.df-prose h4 {
  color: var(--df-foreground);
  font-family: var(--df-display);
  font-weight: 300;
  line-height: 1.25;
}

.df-prose h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.df-prose h3 { font-size: 1.7rem; }
.df-prose a { color: var(--df-primary); text-decoration: underline; }
.df-prose > *:first-child { margin-top: 0; }
.df-prose > *:last-child { margin-bottom: 0; }

.df-about-media {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.df-about-media__large {
  grid-column: 1 / -1;
  aspect-ratio: 4 / 3;
}

.df-about-media__small {
  aspect-ratio: 1;
}

.df-about-media > div {
  overflow: hidden;
  border-radius: var(--df-radius);
  background: var(--df-card);
}

.df-about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.df-stats {
  border-top: 1px solid var(--df-border);
  border-bottom: 1px solid var(--df-border);
  background: rgba(33, 28, 24, 0.3);
}

.df-stats__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  padding-top: 62px;
  padding-bottom: 62px;
}

.df-stat {
  text-align: center;
}

.df-stat__number {
  margin: 0;
  color: var(--df-primary);
  font-family: var(--df-display);
  font-size: clamp(3.2rem, 6vw, 4.2rem);
  font-weight: 300;
  line-height: 1;
}

.df-stat__label {
  margin: 14px 0 0;
  color: var(--df-muted-foreground);
  font-size: 11px;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

/* Commercial */
.df-commercial-grid {
  display: grid;
  gap: 30px;
  padding-bottom: 128px;
}

/* Contact */
.df-contact {
  padding: 90px 0 120px;
}

.df-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.25fr);
  gap: 72px;
}

.df-contact__lead {
  margin: 0;
  font-family: var(--df-display);
  font-size: clamp(1.6rem, 3vw, 2.05rem);
  font-weight: 300;
  line-height: 1.5;
}

.df-contact-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 36px 0 0;
  list-style: none;
}

.df-contact-list a,
.df-contact-list span {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(245, 240, 231, 0.82);
  font-size: 14px;
}

.df-contact-list a:hover {
  color: var(--df-primary);
}

.df-contact-list__icon {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--df-border);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.df-contact-list__icon svg {
  width: 17px;
  height: 17px;
}

.df-contact-form {
  display: grid;
  gap: 20px;
}

.df-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.df-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--df-muted-foreground);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.df-field input,
.df-field textarea,
.df-field select {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius);
  outline: 0;
  background: rgba(33, 28, 24, 0.48);
  color: var(--df-foreground);
  font-size: 14px;
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.df-field textarea {
  min-height: 145px;
  resize: vertical;
}

.df-field select option {
  background: var(--df-secondary);
}

.df-field input:focus,
.df-field textarea:focus,
.df-field select:focus {
  border-color: var(--df-primary);
  box-shadow: 0 0 0 3px rgba(216, 173, 102, 0.1);
}

.df-field input::placeholder,
.df-field textarea::placeholder {
  color: rgba(169, 156, 139, 0.58);
}

.df-honeypot {
  position: absolute !important;
  left: -9999px !important;
}

.df-form-notice {
  padding: 16px 18px;
  border: 1px solid rgba(216, 173, 102, 0.42);
  border-radius: var(--df-radius);
  background: rgba(216, 173, 102, 0.08);
  color: var(--df-foreground);
  font-size: 14px;
}

.df-form-notice--error {
  border-color: rgba(210, 90, 90, 0.45);
  background: rgba(210, 90, 90, 0.08);
}

.df-whatsapp-ready {
  min-height: 420px;
  padding: 54px 40px;
  border: 1px solid var(--df-border);
  border-radius: var(--df-radius);
  background: rgba(33, 28, 24, 0.3);
  text-align: center;
}

.df-whatsapp-ready[hidden] {
  display: none;
}

.df-whatsapp-ready__title {
  margin: 74px 0 14px;
  font-family: var(--df-display);
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  font-weight: 300;
}

.df-whatsapp-ready > p:not(.df-whatsapp-ready__title) {
  max-width: 390px;
  margin: 0 auto;
  color: var(--df-muted-foreground);
  font-size: 14px;
  line-height: 1.7;
}

.df-whatsapp-ready .df-button {
  margin-top: 28px;
}

/* Generic content */
.df-content-page {
  min-height: 65vh;
  padding: calc(var(--df-header-height) + 80px) 0 110px;
}

.df-content-page__title {
  margin: 0 0 40px;
  font-family: var(--df-display);
  font-size: clamp(3rem, 7vw, 5.2rem);
  font-weight: 300;
  line-height: 1;
}

.df-empty {
  padding: 80px 30px;
  border: 1px solid var(--df-border);
  background: var(--df-card);
  color: var(--df-muted-foreground);
  text-align: center;
}

/* Footer */
.df-footer {
  border-top: 1px solid var(--df-border);
  background: var(--df-background);
}

.df-footer__main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  padding-top: 66px;
  padding-bottom: 58px;
}

.df-footer__brand {
  margin: 0;
  font-family: var(--df-display);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.1;
}

.df-footer__description {
  max-width: 370px;
  margin: 14px 0 0;
  color: var(--df-muted-foreground);
  font-size: 14px;
  line-height: 1.75;
}

.df-footer__heading {
  margin: 0;
  color: var(--df-muted-foreground);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.df-footer__links {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.df-footer__links a {
  color: rgba(245, 240, 231, 0.79);
  font-size: 14px;
  transition: color 250ms ease;
}

.df-footer__links a:hover {
  color: var(--df-primary);
}

.df-socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.df-socials a {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1px solid var(--df-border);
  border-radius: 999px;
  color: var(--df-muted-foreground);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 250ms ease, color 250ms ease;
}

.df-socials a:hover {
  border-color: var(--df-primary);
  color: var(--df-primary);
}

.df-socials svg {
  width: 17px;
  height: 17px;
}

.df-footer__bottom {
  padding: 23px 0 26px;
  border-top: 1px solid rgba(52, 44, 39, 0.65);
  color: var(--df-muted-foreground);
  font-size: 12px;
  text-align: center;
}

.df-whatsapp {
  position: fixed;
  z-index: 49;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.42);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: transform 250ms ease;
}

.df-whatsapp::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  content: "";
  background: rgba(37, 211, 102, 0.35);
  animation: df-ping 2.4s ease-out infinite;
}

.df-whatsapp:hover {
  transform: scale(1.07);
}

.df-whatsapp svg {
  width: 26px;
  height: 26px;
}

.df-project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  padding: 0;
  margin: 28px 0 0;
  color: var(--df-muted-foreground);
  font-family: var(--df-sans);
  font-size: 11px;
  letter-spacing: 0.13em;
  list-style: none;
  text-transform: uppercase;
}

/* WordPress editor output */
.alignwide {
  width: min(100vw - 40px, var(--df-container));
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.alignfull {
  width: 100vw;
  max-width: none;
  margin-right: 50%;
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-caption,
.gallery-caption {
  max-width: 100%;
  color: var(--df-muted-foreground);
  font-size: 13px;
}

.sticky { position: relative; }
.bypostauthor { position: relative; }

/* Keyframes */
@keyframes df-kenburns {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to { transform: scale(1.18) translate3d(-1.5%, -1.5%, 0); }
}

@keyframes df-scroll {
  0%, 100% { opacity: 0.9; transform: translate(-50%, 0); }
  50% { opacity: 0.35; transform: translate(-50%, 12px); }
}

@keyframes df-ping {
  0% { opacity: 0.65; transform: scale(1); }
  80%, 100% { opacity: 0; transform: scale(1.65); }
}

/* Responsive */
@media (min-width: 900px) {
  .df-work-card {
    aspect-ratio: 21 / 9;
  }
}

@media (max-width: 1040px) {
  :root { --df-header-height: 70px; }

  .df-menu-toggle {
    display: block;
  }

  .df-nav {
    position: fixed;
    top: var(--df-header-height);
    right: 0;
    bottom: 0;
    left: 0;
    visibility: hidden;
    overflow-y: auto;
    padding: 12px 20px 40px;
    border-top: 1px solid var(--df-border);
    background: var(--df-background);
    opacity: 0;
    transform: translateY(-10px);
    transition: visibility 250ms ease, opacity 250ms ease, transform 250ms ease;
  }

  .df-header.is-open .df-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .df-nav__list,
  .df-nav .menu {
    display: block;
  }

  .df-nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(52, 44, 39, 0.6);
    font-family: var(--df-display);
    font-size: 28px;
    font-style: italic;
    font-weight: 300;
  }

  .df-nav .sub-menu {
    position: static;
    visibility: visible;
    min-width: 0;
    padding: 0 0 8px 22px;
    border: 0;
    background: transparent;
    opacity: 1;
    transform: none;
  }

  .df-nav .sub-menu a {
    padding: 10px 0;
    font-size: 20px;
  }

  .df-masonry {
    grid-auto-rows: minmax(145px, 24vw);
  }
}

@media (max-width: 800px) {
  .df-section-heading,
  .df-project-heading {
    display: block;
  }

  .df-section-heading__copy,
  .df-project-heading__excerpt {
    margin-top: 20px;
  }

  .df-about-grid,
  .df-contact-grid {
    grid-template-columns: 1fr;
  }

  .df-contact-grid {
    gap: 54px;
  }

  .df-stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .df-footer__main {
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 34px;
  }

  .df-masonry {
    grid-auto-rows: minmax(140px, 38vw);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .df-gallery-item {
    min-height: 190px;
  }
}

@media (max-width: 600px) {
  :root { --df-header-height: 64px; }

  .df-container,
  .df-container--narrow {
    width: min(100% - 40px, var(--df-container));
  }

  .df-brand__name { font-size: 18px; }
  .df-brand__tagline { letter-spacing: 0.24em; }

  .df-hero {
    min-height: 620px;
  }

  .df-hero__title {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .df-hero__subtitle {
    font-size: 1.3rem;
  }

  .df-hero__actions {
    flex-direction: column;
    gap: 17px;
    margin-top: 34px;
  }

  .df-page-hero {
    height: 78dvh;
    min-height: 520px;
  }

  .df-page-hero--compact {
    height: 60dvh;
    min-height: 420px;
  }

  .df-page-hero__title {
    font-size: 3rem;
  }

  .df-page-hero__content {
    padding-bottom: 46px;
  }

  .df-work {
    padding: 88px 0 96px;
  }

  .df-section-heading {
    margin-bottom: 42px;
  }

  .df-work-list {
    gap: 22px;
  }

  .df-work-card {
    min-height: 470px;
  }

  .df-work-card__content {
    padding: 26px;
  }

  .df-work-card__title {
    font-size: 2.65rem;
  }

  .df-cinematic-band {
    padding: 105px 0;
  }

  .df-clients {
    padding: 88px 0 96px;
  }

  .df-logo-track {
    gap: 42px;
  }

  .df-client-logo__name {
    font-size: 23px;
  }

  .df-portfolio-intro {
    padding: 80px 0;
  }

  .df-portfolio-gallery-section {
    padding-bottom: 96px;
  }

  .df-project-group + .df-project-group {
    margin-top: 55px;
  }

  .df-gallery-item--wide {
    grid-column: span 2;
  }

  .df-lightbox {
    padding: 70px 16px 80px;
  }

  .df-lightbox__prev,
  .df-lightbox__next {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .df-lightbox__prev { left: calc(50% - 60px); }
  .df-lightbox__next { right: calc(50% - 60px); }

  .df-about-story {
    padding: 84px 0 94px;
  }

  .df-about-grid {
    gap: 48px;
  }

  .df-stats__grid {
    gap: 44px 20px;
    padding-top: 52px;
    padding-bottom: 52px;
  }

  .df-form-row {
    grid-template-columns: 1fr;
  }

  .df-contact {
    padding: 72px 0 94px;
  }

  .df-footer__main {
    grid-template-columns: 1fr 1fr;
  }

  .df-footer__main > div:first-child {
    grid-column: 1 / -1;
  }

  .df-whatsapp {
    right: 18px;
    bottom: 18px;
    width: 54px;
    height: 54px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .df-reveal {
    opacity: 1;
    transform: none;
  }
}
