/* ============================================
   PRSM Films — Warm Editorial Minimal CSS
   "Where Light Bends"
   ============================================ */

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

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

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: #E0D8CC;
  background-color: #0F0F0F;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

::selection {
  background: rgba(200, 149, 108, 0.3);
  color: #FFFFFF;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 400;
  line-height: 1.15;
  color: #E0D8CC;
}

h1 { font-size: clamp(2.8rem, 6.5vw, 5.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }

.section-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8956C;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #C8956C;
}

.accent-text {
  color: #C8956C;
}

/* --- Layout --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-header {
  margin-bottom: 4rem;
}

.section-cta {
  text-align: center;
  margin-top: 3.5rem;
}

/* --- Buttons --- */
.btn-primary {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid #C8956C;
  color: #0F0F0F;
  background: #C8956C;
  transition: all 0.35s ease;
}

.btn-primary:hover {
  background: transparent;
  color: #C8956C;
}

.btn-outline {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border: 1px solid rgba(200, 149, 108, 0.3);
  color: #C8956C;
  background: transparent;
  transition: all 0.35s ease;
}

.btn-outline:hover {
  border-color: #C8956C;
  background: #C8956C;
  color: #0F0F0F;
}

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C8956C;
  border-bottom: 1px solid rgba(200, 149, 108, 0.3);
  padding-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.btn-text:hover {
  border-color: #C8956C;
}

.btn-text i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.btn-text:hover i {
  transform: translateX(4px);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  background: rgba(15, 15, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(200, 149, 108, 0.06);
  transition: all 0.3s ease;
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A8070;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: #C8956C;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #E0D8CC;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-contact {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C8956C;
  border: 1px solid rgba(200, 149, 108, 0.3);
  padding: 0.5rem 1.25rem;
  transition: all 0.3s ease;
}

.nav-contact:hover {
  background: #C8956C;
  color: #0F0F0F;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: #E0D8CC;
  transition: all 0.3s ease;
}

/* Nav Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: #0F0F0F;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.nav-overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav-overlay-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav-overlay-list a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 400;
  color: #E0D8CC;
  opacity: 0.5;
  transition: all 0.3s ease;
}

.nav-overlay-list a:hover {
  opacity: 1;
  color: #C8956C;
}

/* --- Hero --- */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: #0F0F0F;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.hero-video.loaded {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 15, 15, 0.8) 0%, rgba(15, 15, 15, 0.5) 100%);
  z-index: 2;
}

.hero .container {
  position: relative;
  z-index: 3;
}

.hero-content {
  max-width: 700px;
  padding-top: 4rem;
}

.hero-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8956C;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: #C8956C;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: #C8956C;
}

.hero-subtitle {
  max-width: 480px;
  font-size: 1.05rem;
  color: #8A8070;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5A5549;
  animation: scrollBounce 2s ease-in-out infinite;
}

.hero-scroll i {
  font-size: 0.75rem;
  color: #C8956C;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Page Hero --- */
.page-hero {
  padding: 10rem 0 5rem;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.page-hero h1 {
  margin-bottom: 1rem;
}

.page-hero-subtitle {
  font-size: 1.1rem;
  color: #8A8070;
  max-width: 500px;
}

/* --- About Home --- */
.about-home {
  padding: 8rem 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.about-home-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: start;
}

.about-home-image {
  position: relative;
  overflow: hidden;
}

.about-home-image::after {
  content: '';
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 80px;
  height: 80px;
  border-right: 1px solid rgba(200, 149, 108, 0.2);
  border-bottom: 1px solid rgba(200, 149, 108, 0.2);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.about-home-image:hover::after {
  opacity: 1;
}

.about-home-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(20%) saturate(0.85) contrast(1.05);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-home-image:hover img {
  filter: sepia(5%) saturate(1) contrast(1.08);
  transform: scale(1.02);
}

.about-home-text h2 {
  margin-bottom: 2rem;
}

.about-home-text p {
  color: #8A8070;
  margin-bottom: 1.25rem;
}

/* about-stats and about-stat styles moved to Enhanced Counter Effects section below */

/* --- Services Section --- */
.services-section {
  padding: 8rem 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  padding: 2.5rem;
  border: 1px solid rgba(200, 149, 108, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #C8956C;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

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

.service-card:hover {
  border-color: rgba(200, 149, 108, 0.2);
  background: rgba(200, 149, 108, 0.02);
}

.service-icon {
  font-size: 1.5rem;
  color: #C8956C;
  margin-bottom: 1.5rem;
  display: block;
}

.service-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.service-desc {
  font-size: 0.9rem;
  color: #8A8070;
  line-height: 1.7;
}

/* --- Portfolio Section --- */
.portfolio-section {
  padding: 8rem 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.portfolio-item {
  position: relative;
  display: block;
  overflow: hidden;
  background: #0F0F0F;
  aspect-ratio: 4 / 3;
}

.portfolio-item:nth-child(2) {
  grid-row: auto;
}

.portfolio-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) saturate(0.8);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-item:hover img {
  filter: sepia(0%) saturate(1);
  transform: scale(1.04);
}

.portfolio-item-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(15, 15, 15, 0.85));
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.4s ease;
}

.portfolio-item:hover .portfolio-item-info {
  transform: translateY(0);
  opacity: 1;
}

.portfolio-item-info h3 {
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
  color: #E0D8CC;
}

.portfolio-item-info span {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #C8956C;
}

/* --- Testimonial Section --- */
.testimonial-section {
  padding: 8rem 0;
  text-align: center;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 2rem;
  color: #E0D8CC;
}

.testimonial-author {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #C8956C;
  font-style: normal;
}

/* --- Blog Section --- */
.blog-section {
  padding: 8rem 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: #161616;
  border: 1px solid rgba(200, 149, 108, 0.06);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: rgba(200, 149, 108, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.blog-card-image {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  position: relative;
}

.blog-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(22, 22, 22, 0.4));
  z-index: 1;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) saturate(0.85);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.blog-card:hover .blog-card-image img {
  filter: sepia(0%) saturate(1);
  transform: scale(1.06);
}

.blog-card-content {
  padding: 1.75rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-card-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #C8956C;
}

.blog-card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.4;
  color: #E0D8CC;
  transition: color 0.3s ease;
}

.blog-card:hover .blog-card-title {
  color: #C8956C;
}

/* --- CTA Section --- */
.cta-section {
  padding: 8rem 0;
  text-align: center;
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  color: #8A8070;
  max-width: 440px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* --- Story Section (About) --- */
.story-section {
  padding: 6rem 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 5rem;
  align-items: start;
}

.story-image {
  position: relative;
  overflow: hidden;
}

.story-image::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  width: 80px;
  height: 80px;
  border-left: 1px solid rgba(200, 149, 108, 0.2);
  border-top: 1px solid rgba(200, 149, 108, 0.2);
  z-index: 3;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.story-image:hover::before {
  opacity: 1;
}

.story-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(20%) saturate(0.85) contrast(1.05);
  transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.story-image:hover img {
  filter: sepia(5%) saturate(1) contrast(1.08);
  transform: scale(1.02);
}

.story-text p {
  color: #8A8070;
  margin-bottom: 1.5rem;
}

.pull-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-style: italic;
  color: #E0D8CC;
  border-left: 2px solid #C8956C;
  padding-left: 1.5rem;
  margin: 2.5rem 0;
  line-height: 1.6;
}

/* --- Values Section --- */
.values-section {
  padding: 6rem 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.values-section .section-header {
  text-align: center;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  padding: 2.5rem;
  border: 1px solid rgba(200, 149, 108, 0.08);
  transition: all 0.4s ease;
  position: relative;
  text-align: center;
}

.value-card:hover {
  border-color: rgba(200, 149, 108, 0.2);
  background: rgba(200, 149, 108, 0.02);
}

.value-icon {
  font-size: 1.8rem;
  color: #C8956C;
  margin-bottom: 1.5rem;
  display: block;
}

.value-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.value-desc {
  font-size: 0.9rem;
  color: #8A8070;
  line-height: 1.7;
}

/* --- Team Section --- */
.team-section {
  padding: 6rem 0;
}

.team-section .section-header {
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.team-member {
  text-align: center;
}

.team-member-image {
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(200, 149, 108, 0.06);
  transition: border-color 0.4s ease;
}

.team-member:hover .team-member-image {
  border-color: rgba(200, 149, 108, 0.2);
}

.team-member-image img {
  width: 100%;
  height: auto;
  display: block;
  filter: sepia(20%) saturate(0.85);
  transition: all 0.5s ease;
}

.team-member:hover .team-member-image img {
  filter: sepia(5%) saturate(1);
  transform: scale(1.03);
}

.team-member-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  margin-bottom: 0.25rem;
}

.team-member-role {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C8956C;
}

/* --- Services Detail --- */
.services-detail {
  padding: 6rem 0;
}

.service-detail-row {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  padding: 4rem 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
}

.service-detail-row:first-child {
  padding-top: 0;
}

.service-detail-left {
  position: sticky;
  top: 6rem;
  align-self: start;
}

.service-detail-title {
  margin-top: 0.5rem;
}

.service-detail-desc {
  color: #8A8070;
  margin-bottom: 2rem;
  line-height: 1.8;
}

.service-detail-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.service-detail-list li {
  font-size: 0.9rem;
  color: #C0B8AC;
  padding-left: 1.25rem;
  position: relative;
}

.service-detail-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1px;
  background: #C8956C;
}

/* --- Projects Grid --- */
.projects-section {
  padding: 6rem 0;
}

/* --- Project Detail --- */
.project-detail {
  padding: 6rem 0;
}

.project-detail-hero {
  margin-bottom: 3rem;
  overflow: hidden;
}

.project-detail-hero img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  filter: sepia(15%) saturate(0.85);
}

.project-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(200, 149, 108, 0.08);
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
  margin-bottom: 2.5rem;
}

.meta-item-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5A5549;
  margin-bottom: 0.5rem;
}

.meta-item-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #E0D8CC;
}

.project-description {
  max-width: 700px;
}

.project-description p {
  color: #8A8070;
  line-height: 1.8;
}

.project-nav {
  display: flex;
  justify-content: space-between;
  padding: 3rem 0 0;
  border-top: 1px solid rgba(200, 149, 108, 0.08);
  margin-top: 4rem;
}

.project-prev, .project-next {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8A8070;
  transition: color 0.3s ease;
}

.project-prev:hover, .project-next:hover {
  color: #C8956C;
}

/* --- Blog List --- */
.blog-list-section {
  padding: 4rem 0 6rem;
}

.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-list-item {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 2rem;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
  transition: all 0.4s ease;
  overflow: hidden;
}

.blog-list-item:first-child {
  border-top: 1px solid rgba(200, 149, 108, 0.08);
}

.blog-list-item:hover {
  background: rgba(200, 149, 108, 0.02);
}

.blog-list-thumb {
  width: 200px;
  height: 130px;
  overflow: hidden;
  flex-shrink: 0;
}

.blog-list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(15%) saturate(0.85);
  transition: all 0.5s ease;
}

.blog-list-item:hover .blog-list-thumb img {
  filter: sepia(0%) saturate(1);
  transform: scale(1.05);
}

.blog-list-content {
  padding: 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.blog-list-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem;
  color: #E0D8CC;
  transition: color 0.3s ease;
  line-height: 1.3;
}

.blog-list-item:hover .blog-list-title {
  color: #C8956C;
}

.blog-list-excerpt {
  font-size: 0.85rem;
  color: #6A6458;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-list-meta {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: #5A5549;
}

.blog-list-date {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: #5A5549;
}

.blog-list-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C8956C;
  text-align: right;
  padding-right: 1.5rem;
  white-space: nowrap;
}

/* --- Article Detail --- */
.article-detail {
  padding: 4rem 0 6rem;
}

.article-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.article-date, .article-cat {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: #C8956C;
}

.article-featured {
  margin-bottom: 3rem;
  overflow: hidden;
}

.article-featured img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  filter: sepia(15%) saturate(0.85);
}

.article-body {
  max-width: 700px;
}

.article-body p {
  color: #8A8070;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}

.article-body h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 1rem;
}

.article-body h3 {
  font-size: 1.2rem;
  margin: 2rem 0 0.75rem;
}

.article-body blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.3rem;
  color: #E0D8CC;
  border-left: 2px solid #C8956C;
  padding-left: 1.5rem;
  margin: 2rem 0;
  line-height: 1.6;
}

/* --- Contact Section --- */
.contact-section {
  padding: 6rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2 {
  margin-bottom: 1.5rem;
}

.contact-info p {
  color: #8A8070;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-detail-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5A5549;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.contact-detail-label i {
  font-size: 0.6rem;
  color: #C8956C;
}

.contact-detail-value {
  font-size: 0.95rem;
  color: #C0B8AC;
  line-height: 1.6;
  transition: color 0.3s ease;
}

a.contact-detail-value:hover {
  color: #C8956C;
}

.contact-map {
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-map iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(200, 149, 108, 0.1);
  filter: sepia(30%) saturate(0.6) brightness(0.7);
  transition: filter 0.5s ease;
}

.contact-map iframe:hover {
  filter: sepia(10%) saturate(0.8) brightness(0.85);
}

/* --- Contact Form --- */
.contact-form-section {
  padding: 6rem 0;
  border-top: 1px solid rgba(200, 149, 108, 0.08);
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #5A5549;
}

.form-group input,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: #E0D8CC;
  background: #161616;
  border: 1px solid rgba(200, 149, 108, 0.1);
  padding: 0.9rem 1rem;
  transition: border-color 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #C8956C;
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ============================================
   FOOTER — Warm Editorial Layout
   ============================================ */
.site-footer {
  border-top: 1px solid rgba(200, 149, 108, 0.08);
  margin-top: 4rem;
  background: #0A0A0A;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(200, 149, 108, 0.06);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow: visible;
}

.footer-logo {
  display: inline-block;
  margin-bottom: 0.25rem;
}

.footer-logo img {
  height: 32px;
  width: auto;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #5A5549;
  line-height: 1.65;
  max-width: 280px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-col-title {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #C8956C;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(200, 149, 108, 0.1);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #7A7468;
  transition: all 0.3s ease;
  display: inline-block;
}

.footer-links a:hover {
  color: #E0D8CC;
  transform: translateX(3px);
}

.footer-contact-col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-contact-info .footer-info-line {
  font-size: 0.85rem;
  color: #7A7468;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.55;
  transition: color 0.3s ease;
}

.footer-contact-info .footer-info-line i {
  font-size: 0.7rem;
  color: #C8956C;
  width: 14px;
  text-align: center;
  margin-top: 0.4em;
  flex-shrink: 0;
}

.footer-contact-info a.footer-info-line:hover {
  color: #E0D8CC;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}

.footer-social a {
  font-size: 0.95rem;
  color: #5A5549;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(200, 149, 108, 0.1);
}

.footer-social a:hover {
  color: #C8956C;
  background: rgba(200, 149, 108, 0.05);
  border-color: rgba(200, 149, 108, 0.25);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
}

.footer-bottom-text {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  color: #3A3830;
}

/* --- Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ============================================
   STATS — Enhanced Counter Effects
   "Where Light Bends"
   ============================================ */

/* --- About Stats (Homepage) --- */
.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2.5rem 0;
  border-top: 1px solid rgba(200, 149, 108, 0.1);
  border-bottom: 1px solid rgba(200, 149, 108, 0.1);
  position: relative;
}

/* Animated line that sweeps across on scroll */
.about-stats::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #C8956C, transparent);
  z-index: 5;
  transition: width 1.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.about-stats.animated::before {
  width: 100%;
}

.about-stat {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  transition: opacity 0.7s ease, transform 0.7s ease, background 0.4s ease;
}

.about-stat.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.about-stat:nth-child(1) { transition-delay: 0.1s; }
.about-stat:nth-child(2) { transition-delay: 0.3s; }
.about-stat:nth-child(3) { transition-delay: 0.5s; }

.about-stat::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: rgba(200, 149, 108, 0.1);
}

.about-stat:last-child::after {
  display: none;
}

.about-stat:hover {
  background: rgba(200, 149, 108, 0.05);
}

.about-stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  display: block;
  color: #C8956C;
  line-height: 1;
  margin-bottom: 0.5rem;
  position: relative;
}

/* Glow effect on stat numbers when animated */
.about-stat.animated .about-stat-num {
  text-shadow: 0 0 30px rgba(200, 149, 108, 0.3), 0 0 60px rgba(200, 149, 108, 0.1);
}

/* Pulse animation on hover */
.about-stat:hover .about-stat-num {
  animation: statPulse 0.6s ease;
}

@keyframes statPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); text-shadow: 0 0 40px rgba(200, 149, 108, 0.5); }
  100% { transform: scale(1); }
}

/* Accent underline that slides in */
.about-stat::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C8956C, transparent);
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.6s;
}

.about-stat.animated::before {
  width: 60%;
}

.about-stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5A5549;
}

/* --- Full-Width Stats Section (About page) --- */
.stats-section {
  padding: 6rem 0;
  border-bottom: 1px solid rgba(200, 149, 108, 0.08);
  background: rgba(200, 149, 108, 0.015);
  position: relative;
  overflow: hidden;
}

/* Background subtle gradient sweep */
.stats-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(200, 149, 108, 0.03), transparent);
  transition: left 2s ease;
}

.stats-section.animated::before {
  left: 100%;
}

.stats-section .section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}

/* Top sweep line */
.stats-grid::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C8956C, transparent);
  z-index: 5;
  transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.2s;
}

.stats-grid.animated::before {
  width: 100%;
}

/* Bottom sweep line */
.stats-grid::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C8956C, transparent);
  z-index: 5;
  transition: width 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.6s;
}

.stats-grid.animated::after {
  width: 100%;
}

.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  opacity: 0;
  transform: translateY(25px) scale(0.92);
  transition: opacity 0.8s ease, transform 0.8s ease, background 0.4s ease;
}

.stat-item.animated {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.stat-item:nth-child(1) { transition-delay: 0.1s; }
.stat-item:nth-child(2) { transition-delay: 0.25s; }
.stat-item:nth-child(3) { transition-delay: 0.4s; }
.stat-item:nth-child(4) { transition-delay: 0.55s; }

/* Vertical divider lines */
.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(200, 149, 108, 0.1);
  transition: background 0.5s ease;
}

.stat-item:last-child::after {
  display: none;
}

.stat-item:hover {
  background: rgba(200, 149, 108, 0.04);
}

.stat-item:hover::after {
  background: rgba(200, 149, 108, 0.25);
}

.stat-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  font-weight: 400;
  display: block;
  color: #C8956C;
  line-height: 1;
  margin-bottom: 0.75rem;
  position: relative;
}

/* Glow on animated numbers */
.stat-item.animated .stat-number {
  text-shadow: 0 0 40px rgba(200, 149, 108, 0.35), 0 0 80px rgba(200, 149, 108, 0.1);
}

/* Scale pulse on hover */
.stat-item:hover .stat-number {
  animation: statNumPulse 0.5s ease;
}

@keyframes statNumPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.1); text-shadow: 0 0 50px rgba(200, 149, 108, 0.6), 0 0 100px rgba(200, 149, 108, 0.2); }
  100% { transform: scale(1); }
}

/* Accent underline slide-in */
.stat-item::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #C8956C, transparent);
  transition: width 0.9s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transition-delay: 0.7s;
}

.stat-item.animated::before {
  width: 50%;
}

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #5A5549;
  transition: color 0.3s ease;
}

.stat-item:hover .stat-label {
  color: #8A8070;
}

/* Counter digit flip animation */
.counter-digit {
  display: inline-block;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.counter-digit.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about-home-grid,
  .story-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .portfolio-item:nth-child(2) {
    grid-row: auto;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:nth-child(2)::after {
    display: none;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .service-detail-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-detail-left {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .project-meta {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(200, 149, 108, 0.06);
  }

  .footer-contact-col {
    grid-column: 1 / -1;
    padding-top: 1rem;
    border-top: 1px solid rgba(200, 149, 108, 0.06);
  }

  .blog-list-item {
    grid-template-columns: 160px 1fr auto;
    gap: 1.5rem;
  }

  .blog-list-thumb {
    width: 160px;
    height: 110px;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-contact {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-list-item {
    grid-template-columns: 120px 1fr;
    gap: 1.25rem;
  }

  .blog-list-thumb {
    width: 120px;
    height: 80px;
  }

  .blog-list-cat {
    display: none;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact-col {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .about-stats {
    gap: 0;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .about-stat-num {
    font-size: 2rem;
  }

  .project-meta {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem;
  }

  .site-nav {
    padding: 1rem 1.25rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .about-stats {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-item::after {
    width: 60%;
    height: 1px;
    top: auto;
    bottom: 0;
    right: 20%;
  }

  .stat-item:last-child::after {
    display: none;
  }

  .stat-number {
    font-size: 2rem;
  }

  .about-stat::after {
    width: 60%;
    height: 1px;
    top: auto;
    bottom: 0;
    right: 20%;
    background: rgba(200, 149, 108, 0.1);
  }

  .project-meta {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-nav {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-list-item {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .blog-list-thumb {
    width: 100%;
    height: 180px;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-brand {
    max-width: 100%;
  }

  .footer-contact-col {
    max-width: 100%;
  }
}
