/*
Theme Name:  Axiom Agency
Theme URI:   https://yoursite.com
Author:      Your Agency
Author URI:  https://yoursite.com
Description: A clean, minimal WordPress theme for digital agencies. Fully responsive (desktop, tablet, mobile). Compatible with Elementor and Gutenberg.
Version:     2.0.0
License:     GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: axiom-agency
Tags:        portfolio, agency, minimal, clean, responsive, custom-menu, featured-images, full-width-template, translation-ready, block-styles, wide-blocks
*/

/* ============================================================
   FONTS
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  /* Colors */
  --c-bg:         #F8F7F4;
  --c-surface:    #FFFFFF;
  --c-ink:        #1A1A18;
  --c-muted:      #6B6B67;
  --c-faint:      #B8B8B2;
  --c-accent:     #C8A96E;
  --c-accent-dk:  #A8893E;
  --c-border:     #E8E8E2;
  --c-dark:       #111110;

  /* Typography */
  --f-display: 'Cormorant Garamond', Georgia, serif;
  --f-body:    'DM Sans', system-ui, sans-serif;

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  2rem;
  --sp-lg:  4rem;
  --sp-xl:  7rem;
  --sp-2xl: 12rem;

  /* Misc */
  --radius:     2px;
  --ease:       cubic-bezier(0.25, 0.1, 0.25, 1);
  --transition: 0.35s var(--ease);
  --max-w:      1280px;
  --header-h:   72px;
}

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

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

body {
  background: var(--c-bg);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img, video { display: block; max-width: 100%; height: auto; object-fit: cover; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea, select { font: inherit; }

/* ============================================================
   TYPOGRAPHY SCALE
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.8rem, 6vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.75rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: 1.2rem; font-family: var(--f-body); font-weight: 500; }
p  { max-width: 65ch; line-height: 1.75; }
p + p { margin-top: var(--sp-sm); }

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-md);
}

.section        { padding-block: var(--sp-xl); }
.section--lg    { padding-block: var(--sp-2xl); }
.section--sm    { padding-block: var(--sp-lg); }
.section--dark  { background: var(--c-ink); }
.section--white { background: var(--c-surface); }

/* ============================================================
   REUSABLE COMPONENTS
   ============================================================ */

/* Section label */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.9rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 2rem;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}
.btn svg { transition: transform var(--transition); flex-shrink: 0; }

.btn-primary {
  padding: 0.95rem 2rem;
  background: var(--c-ink);
  color: var(--c-bg);
}
.btn-primary:hover { background: var(--c-accent); }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-outline {
  padding: 0.9rem 1.8rem;
  border: 1px solid var(--c-ink);
  color: var(--c-ink);
}
.btn-outline:hover { background: var(--c-ink); color: var(--c-bg); }

.btn-ghost {
  color: var(--c-muted);
  border-bottom: 1px solid var(--c-border);
  padding-bottom: 3px;
}
.btn-ghost:hover { color: var(--c-ink); border-color: var(--c-ink); }

.btn-light {
  padding: 0.95rem 2rem;
  background: var(--c-bg);
  color: var(--c-ink);
}
.btn-light:hover { background: var(--c-accent); color: white; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 500;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition), height var(--transition);
}
.site-header.is-scrolled {
  background: rgba(248, 247, 244, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--c-border);
  height: 60px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Logo */
.site-logo {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-ink);
  line-height: 1;
  position: relative;
  z-index: 600;
}
.site-logo span { color: var(--c-accent); }
.site-logo a { color: inherit; }

/* Primary nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
.primary-nav a {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  position: relative;
  padding-block: 4px;
  transition: color var(--transition);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--c-accent);
  transition: width var(--transition);
}
.primary-nav a:hover { color: var(--c-ink); }
.primary-nav a:hover::after { width: 100%; }

.header-cta {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--c-ink);
  padding: 0.6rem 1.4rem;
  border: 1px solid var(--c-ink);
  transition: all var(--transition);
}
.header-cta:hover { background: var(--c-ink); color: var(--c-bg); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  position: relative;
  z-index: 600;
}
.hamburger span {
  display: block;
  height: 1.5px;
  background: var(--c-ink);
  transition: transform var(--transition), opacity var(--transition), width var(--transition);
  transform-origin: center;
}
.hamburger span:nth-child(3) { width: 60%; margin-left: auto; }
.hamburger.is-active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { width: 100%; transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: var(--c-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.mobile-nav.is-open { opacity: 1; pointer-events: all; }

.mobile-nav a {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 8vw, 3.5rem);
  font-weight: 300;
  color: var(--c-ink);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.25s;
}
.mobile-nav.is-open a { opacity: 1; transform: translateY(0); }
.mobile-nav.is-open a:nth-child(1) { transition-delay: 0.05s; }
.mobile-nav.is-open a:nth-child(2) { transition-delay: 0.10s; }
.mobile-nav.is-open a:nth-child(3) { transition-delay: 0.15s; }
.mobile-nav.is-open a:nth-child(4) { transition-delay: 0.20s; }
.mobile-nav.is-open a:nth-child(5) { transition-delay: 0.25s; }
.mobile-nav a:hover { color: var(--c-accent); }

.mobile-nav-cta {
  margin-top: 1.5rem;
  font-size: 0.78rem !important;
  font-family: var(--f-body) !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border: 1px solid var(--c-ink);
  transition: all 0.25s !important;
}
.mobile-nav-cta:hover { background: var(--c-ink) !important; color: var(--c-bg) !important; }

.mobile-nav-footer {
  position: absolute;
  bottom: 2.5rem;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-faint);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--sp-lg);
  padding-top: calc(var(--header-h) + 2rem);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

/* Subtle grid lines decoration */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hero-grid span {
  border-right: 1px solid var(--c-border);
  opacity: 0.5;
}

.hero-content { position: relative; z-index: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 2.5rem; height: 1px;
  background: var(--c-accent);
}

.hero h1 { margin-bottom: 1.75rem; }
.hero h1 em { font-style: italic; color: var(--c-muted); }

.hero-lead {
  font-size: 1.05rem;
  color: var(--c-muted);
  line-height: 1.85;
  margin-bottom: 2.5rem;
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.75rem;
}

/* Hero visual */
.hero-visual {
  position: relative;
  z-index: 1;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-image-frame {
  aspect-ratio: 4 / 5;
  background: linear-gradient(140deg, #EDEAE2 0%, #D8D3C6 100%);
  border: 1px solid var(--c-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image-frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 55%, rgba(200,169,110,0.13) 100%);
}
.hero-placeholder-icon { opacity: 0.15; }

.hero-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.75rem;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 1.25rem 1.75rem;
  box-shadow: 0 12px 40px rgba(26,26,24,0.09);
}
.hero-badge-num {
  font-family: var(--f-display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--c-accent);
  line-height: 1;
}
.hero-badge-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 0.25rem;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-faint);
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--c-faint), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(0.7); }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee-bar {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
  padding-block: 0.9rem;
  overflow: hidden;
}
.marquee-track {
  display: flex;
  gap: 3rem;
  animation: marquee 24s linear infinite;
  white-space: nowrap;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: flex;
  align-items: center;
  gap: 3rem;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-muted);
  flex-shrink: 0;
}
.marquee-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--c-accent); flex-shrink: 0; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES
   ============================================================ */
.services-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: end;
  margin-bottom: var(--sp-xl);
}
.services-intro { font-size: 0.97rem; color: var(--c-muted); line-height: 1.85; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-border);
  border: 1px solid var(--c-border);
}

.service-card {
  background: var(--c-bg);
  padding: 2.75rem 2rem;
  position: relative;
  overflow: hidden;
  transition: background var(--transition);
  cursor: default;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--c-accent);
  transition: width 0.5s var(--ease);
}
.service-card:hover { background: var(--c-surface); }
.service-card:hover::before { width: 100%; }

.service-num {
  font-family: var(--f-display);
  font-size: 2.8rem;
  font-weight: 300;
  color: var(--c-border);
  line-height: 1;
  margin-bottom: 0.85rem;
  transition: color var(--transition);
}
.service-card:hover .service-num { color: var(--c-accent); }

.service-title {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 400;
  margin-bottom: 0.65rem;
  line-height: 1.25;
}
.service-desc { font-size: 0.88rem; color: var(--c-muted); line-height: 1.72; }

/* ============================================================
   PORTFOLIO / WORK
   ============================================================ */
.work-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 260px;
  gap: 0.75rem;
}

.work-item {
  position: relative;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  cursor: pointer;
}
.work-item:nth-child(1) { grid-column: span 7; grid-row: span 2; }
.work-item:nth-child(2) { grid-column: span 5; }
.work-item:nth-child(3) { grid-column: span 5; }
.work-item:nth-child(4) { grid-column: span 5; }
.work-item:nth-child(5) { grid-column: span 7; }

.work-item-bg {
  width: 100%; height: 100%;
  transition: transform 0.65s var(--ease);
  display: flex; align-items: center; justify-content: center;
}
.work-item:nth-child(1) .work-item-bg { background: linear-gradient(135deg,#ECEAE3,#D8D5CA); }
.work-item:nth-child(2) .work-item-bg { background: linear-gradient(135deg,#E8E3D8,#CEC8B8); }
.work-item:nth-child(3) .work-item-bg { background: linear-gradient(135deg,#E4E1D8,#CCC8BC); }
.work-item:nth-child(4) .work-item-bg { background: linear-gradient(135deg,#EAE8E0,#D5D1C4); }
.work-item:nth-child(5) .work-item-bg { background: linear-gradient(135deg,#E5E3DB,#D0CCC0); }

.work-item:hover .work-item-bg { transform: scale(1.04); }

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26,26,24,0);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background var(--transition);
}
.work-item:hover .work-overlay { background: rgba(26,26,24,0.62); }

.work-meta {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition), transform var(--transition);
}
.work-item:hover .work-meta { opacity: 1; transform: translateY(0); }

.work-cat {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.35rem;
}
.work-title {
  font-family: var(--f-display);
  font-size: 1.45rem;
  font-weight: 300;
  color: white;
  line-height: 1.2;
}

/* ============================================================
   ABOUT
   ============================================================ */
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-visual { position: relative; }
.about-image-wrap {
  aspect-ratio: 3/4;
  background: linear-gradient(140deg, #ECEAE3 0%, #D4D0C4 100%);
  border: 1px solid var(--c-border);
  width: 88%;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-accent-block {
  position: absolute;
  right: 0; bottom: -2rem;
  width: 52%;
  aspect-ratio: 1;
  background: var(--c-accent);
  opacity: 0.1;
  z-index: -1;
}
.about-year {
  position: absolute;
  right: 1.5rem; bottom: 1.5rem;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-faint);
}

.about-content { display: flex; flex-direction: column; gap: 2.5rem; }
.about-text { font-size: 1rem; color: var(--c-muted); line-height: 1.9; }

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-border);
}
.stat-num {
  font-family: var(--f-display);
  font-size: 2.6rem;
  font-weight: 300;
  line-height: 1;
}
.stat-lbl {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-top: 0.3rem;
}

/* ============================================================
   PROCESS
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: var(--sp-lg);
}
.process-step {
  padding: 2.5rem 2rem;
  background: var(--c-ink);
  position: relative;
}
.process-step::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.process-num {
  font-family: var(--f-display);
  font-size: 3rem;
  font-weight: 300;
  color: rgba(200,169,110,0.3);
  line-height: 1;
  margin-bottom: 1rem;
}
.process-title {
  font-family: var(--f-display);
  font-size: 1.35rem;
  font-weight: 400;
  color: rgba(248,247,244,0.92);
  margin-bottom: 0.65rem;
}
.process-desc {
  font-size: 0.87rem;
  color: rgba(248,247,244,0.45);
  line-height: 1.7;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--sp-lg);
  flex-wrap: wrap;
  gap: 1rem;
}
.testimonials-head h2 { color: var(--c-bg); }
.testimonials-head .section-label { color: var(--c-accent); }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.07);
}

.testimonial-card {
  background: var(--c-ink);
  padding: 2.75rem 2rem;
  transition: background var(--transition);
}
.testimonial-card:hover { background: #1F1F1D; }

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 1.25rem;
}
.testimonial-stars span {
  width: 12px; height: 12px;
  background: var(--c-accent);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.testimonial-quote {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 300;
  font-style: italic;
  color: rgba(248,247,244,0.82);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.testimonial-author { display: flex; align-items: center; gap: 0.85rem; }
.author-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(200,169,110,0.22);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--c-accent);
  flex-shrink: 0;
}
.author-name { font-size: 0.85rem; font-weight: 500; color: rgba(248,247,244,0.9); }
.author-role { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(248,247,244,0.35); margin-top: 0.15rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  text-align: center;
  position: relative;
  overflow: hidden;
  padding-block: 9rem;
}
.cta-watermark {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display);
  font-size: clamp(5rem, 14vw, 16rem);
  font-weight: 300;
  color: rgba(26,26,24,0.03);
  white-space: nowrap;
  pointer-events: none;
  line-height: 1;
  user-select: none;
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 { margin-bottom: 1.25rem; }
.cta-inner p { font-size: 1rem; color: var(--c-muted); margin: 0 auto 2.5rem; line-height: 1.8; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-ink);
  color: rgba(248,247,244,0.5);
  padding-top: var(--sp-xl);
  padding-bottom: var(--sp-md);
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  margin-bottom: var(--sp-md);
}
.footer-logo {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.9);
  display: block;
  margin-bottom: 1rem;
}
.footer-logo span { color: var(--c-accent); }
.footer-tagline {
  font-size: 0.87rem;
  color: rgba(248,247,244,0.35);
  line-height: 1.75;
  max-width: 28ch;
  margin-bottom: 1.75rem;
}
.footer-socials { display: flex; gap: 0.75rem; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: rgba(248,247,244,0.5);
  transition: all var(--transition);
}
.footer-socials a:hover { border-color: var(--c-accent); color: var(--c-accent); }

.footer-heading {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(248,247,244,0.85);
  margin-bottom: 1.25rem;
  display: block;
}
.footer-links { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links a {
  font-size: 0.87rem;
  color: rgba(248,247,244,0.35);
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--c-accent); }
.footer-links span {
  font-size: 0.87rem;
  color: rgba(248,247,244,0.35);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  color: rgba(248,247,244,0.2);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ============================================================
   SINGLE PAGE TEMPLATE
   ============================================================ */
.page-hero {
  padding-top: calc(var(--header-h) + 5rem);
  padding-bottom: 5rem;
  border-bottom: 1px solid var(--c-border);
}
.page-hero h1 { margin-top: 1rem; }
.page-content {
  padding-block: var(--sp-xl);
  max-width: 72ch;
}
.page-content h2, .page-content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.page-content p { margin-bottom: 1rem; }
.page-content ul, .page-content ol {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
  list-style: disc;
  color: var(--c-muted);
}

/* ============================================================
   BLOG / ARCHIVE
   ============================================================ */
.blog-hero {
  padding-top: calc(var(--header-h) + 4rem);
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--c-border);
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-md);
  padding-block: var(--sp-xl);
}
.post-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: 0 8px 32px rgba(26,26,24,0.08); }
.post-card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg,#ECEAE3,#D8D5CA);
  overflow: hidden;
}
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.55s var(--ease); }
.post-card:hover .post-card-thumb img { transform: scale(1.04); }
.post-card-body { padding: 1.5rem; }
.post-card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin-bottom: 0.75rem;
}
.post-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
  transition: color var(--transition);
}
.post-card:hover h3 { color: var(--c-accent); }
.post-card p { font-size: 0.88rem; color: var(--c-muted); line-height: 1.7; }
.post-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
  transition: color var(--transition);
}
.post-card-link:hover { color: var(--c-ink); }
.post-card-link svg { transition: transform var(--transition); }
.post-card-link:hover svg { transform: translateX(4px); }

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding-bottom: var(--sp-xl);
}
.pagination a, .pagination span {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--c-border);
  font-size: 0.82rem;
  color: var(--c-muted);
  transition: all var(--transition);
}
.pagination a:hover, .pagination .current {
  background: var(--c-ink);
  border-color: var(--c-ink);
  color: var(--c-bg);
}

/* ============================================================
   404 PAGE
   ============================================================ */
.error-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-block: var(--sp-xl);
}
.error-num {
  font-family: var(--f-display);
  font-size: clamp(7rem, 20vw, 18rem);
  font-weight: 300;
  line-height: 0.9;
  color: var(--c-border);
  margin-bottom: 2rem;
}
.error-page h2 { margin-bottom: 1rem; }
.error-page p { color: var(--c-muted); margin-bottom: 2.5rem; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.10s; }
.reveal-d2 { transition-delay: 0.20s; }
.reveal-d3 { transition-delay: 0.30s; }
.reveal-d4 { transition-delay: 0.40s; }

/* ============================================================
   ELEMENTOR COMPATIBILITY
   ============================================================ */
.elementor-section { max-width: 100%; }
.elementor-widget-container p { max-width: none; }

/* ============================================================
   GUTENBERG BLOCKS
   ============================================================ */
.wp-block-image { margin-block: 1.5rem; }
.wp-block-quote {
  border-left: 3px solid var(--c-accent);
  padding: 1.25rem 1.5rem;
  margin-block: 1.5rem;
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--c-muted);
}
.wp-block-separator { border: none; border-top: 1px solid var(--c-border); margin-block: 2rem; }
.alignwide { max-width: 1100px; margin-inline: auto; }
.alignfull { max-width: 100%; }

/* ============================================================
   SCREEN READER / ACCESSIBILITY
   ============================================================ */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; margin: -1px; overflow: hidden; padding: 0;
  position: absolute; width: 1px; word-wrap: normal !important;
}
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 3px; }

/* ============================================================
   RESPONSIVE — TABLET  (max 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  :root { --sp-xl: 5rem; --sp-2xl: 8rem; }

  .hero { grid-template-columns: 1fr; min-height: auto; padding-bottom: 6rem; }
  .hero-visual { display: none; }
  .hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }

  .services-header { grid-template-columns: 1fr; gap: var(--sp-md); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }

  .work-item:nth-child(1) { grid-column: span 12; grid-row: span 1; aspect-ratio: 16/7; }
  .work-item:nth-child(2) { grid-column: span 6; }
  .work-item:nth-child(3) { grid-column: span 6; }
  .work-item:nth-child(4) { grid-column: span 6; }
  .work-item:nth-child(5) { grid-column: span 6; }
  .work-grid { grid-auto-rows: 220px; }

  .about-inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .about-visual { display: none; }

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

  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 2; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: var(--sp-md); }

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

/* ============================================================
   RESPONSIVE — MOBILE  (max 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --sp-xl: 4rem;
    --sp-2xl: 6rem;
    --sp-lg: 3rem;
    --sp-md: 1.5rem;
    --header-h: 60px;
  }

  .primary-nav { display: none; }
  .header-cta  { display: none; }
  .hamburger   { display: flex; }

  .hero { padding-bottom: 5rem; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card { padding: 2rem 1.5rem; }

  .work-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 0.6rem; }
  .work-item { grid-column: span 1 !important; grid-row: span 1 !important; aspect-ratio: 16/9; }

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

  .testimonials-grid { grid-template-columns: 1fr; }
  .testimonials-grid .testimonial-card:last-child { grid-column: span 1; }

  .footer-top { grid-template-columns: 1fr; gap: var(--sp-md); }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.4rem; }

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

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

  .cta-watermark { font-size: clamp(3rem, 18vw, 8rem); }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE  (max 480px)
   ============================================================ */
@media (max-width: 480px) {
  :root { --sp-xl: 3rem; --sp-2xl: 5rem; }

  h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  h2 { font-size: clamp(1.75rem, 7vw, 2.5rem); }

  .stats-row { grid-template-columns: 1fr 1fr; }
  .testimonials-head { flex-direction: column; align-items: flex-start; }

  .container { padding-inline: 1.25rem; }
}
