/* ============================================================
   TDJ VISIONARY — Global Stylesheet
   Premium Creative Studio
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Manrope:wght@300;400;500;600;700&display=swap');

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

:root {
  --bg:        #F7F5F2;
  --white:     #FFFFFF;
  --ink:       #1F1F1C;
  --secondary: #66635E;
  --soft:      #EAE5DE;
  --card-bg:   #F0EDE8;
  --accent:    #A08F7C;
  --accent-dk: #8A7A6A;
  --border:    #DDD8D0;
  --serif:     'Cormorant Garamond', Georgia, serif;
  --sans:      'Manrope', system-ui, sans-serif;
  --radius:    6px;
  --radius-lg: 12px;
  --shadow:    0 2px 20px rgba(31,31,28,0.07);
  --shadow-md: 0 8px 40px rgba(31,31,28,0.11);
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --max-w:     1280px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--sans);
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body,
main,
section {
  max-width: 100%;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

img { display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--sans); border: none; background: none; }
ul, ol { list-style: none; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }
h5 { font-size: 1rem; }

p { font-size: clamp(0.95rem, 1.2vw, 1.05rem); color: var(--secondary); max-width: 62ch; }

/* ── Layout Utilities ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section--soft { background-color: var(--soft); }
.section--white { background-color: var(--white); }
.section--ink { background-color: var(--ink); color: var(--bg); }

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

.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; justify-content: center; align-items: center; }
.flex-col     { display: flex; flex-direction: column; }

.text-center { text-align: center; }
.text-ink    { color: var(--ink); }
.text-sec    { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-white  { color: var(--white); }

.label {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-block;
  margin-bottom: 1rem;
}

.divider { width: 40px; height: 1px; background: var(--accent); display: block; margin: 1.25rem 0; }
.divider--center { margin: 1.25rem auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  background: #333330;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(31,31,28,0.2);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-accent {
  background: var(--accent);
  color: var(--white);
}
.btn-accent:hover {
  background: var(--accent-dk);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(160,143,124,0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: gap var(--transition);
}
.btn-icon:hover { gap: 0.9rem; }
.btn-icon .arrow { transition: transform var(--transition); }
.btn-icon:hover .arrow { transform: translateX(4px); }

.cta-group { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: all 0.4s ease;
  background: rgba(247, 245, 242, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav--scrolled {
  background: rgba(247, 245, 242, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(221,216,208,0.75);
  box-shadow: 0 2px 20px rgba(31,31,28,0.06);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
}

.nav__logo {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.nav__logo span { color: var(--accent); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--secondary);
  transition: color var(--transition);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav__link:hover { color: var(--ink); }
.nav__link:hover::after { width: 100%; }
.nav__link.active { color: var(--ink); }
.nav__link.active::after { width: 100%; }

.nav__cta {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--ink);
  padding: 0.6rem 1.4rem;
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition), transform var(--transition), box-shadow var(--transition);
  flex-shrink: 0;
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(31,31,28,0.14);
}

/* Mobile Nav */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all var(--transition);
}
.nav__hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__hamburger.open span:nth-child(2) { opacity: 0; }
.nav__hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
  padding: 2rem;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link {
  font-size: 1.1rem;
  letter-spacing: 0.12em;
}
.nav__mobile .nav__cta {
  font-size: 0.85rem;
  padding: 0.85rem 2rem;
}

/* ── Hero ── */
.hero {
  --hero-scroll: 0;
  --hero-progress: 0;
  --hero-mouse-x: 0;
  --hero-mouse-y: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(5rem, 10vw, 7rem);
  padding-top: 120px;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero__bg-shape {
  position: absolute;
  right: -10%;
  top: 5%;
  width: 55%;
  height: 100%;
  background: linear-gradient(135deg, rgba(234,229,222,0.92) 0%, rgba(240,237,232,0.98) 100%);
  border-radius: 2px;
  transform: translate3d(0, calc(var(--hero-scroll) * 0.09px), 0) scale(calc(1 + var(--hero-scroll) * 0.00022)) skewX(-2deg);
  transform-origin: center;
  will-change: transform;
}

.hero__visual {
  position: absolute;
  right: clamp(1.25rem, 7vw, 8rem);
  top: 16%;
  width: min(42vw, 560px);
  height: min(62vh, 610px);
  z-index: 1;
  pointer-events: none;
  transform: translate3d(
    calc(var(--hero-mouse-x) * 10px),
    calc((var(--hero-scroll) * 0.045px) + (var(--hero-mouse-y) * 10px)),
    0
  );
  transition: transform 0.18s ease-out;
  will-change: transform;
}

.hero__visual-grid {
  position: absolute;
  inset: 9% 4% 6% 12%;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(160,143,124,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160,143,124,0.16) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(115deg, transparent 0%, #000 22%, #000 72%, transparent 100%);
  animation: heroGridDrift 18s ease-in-out infinite alternate;
}

.hero__orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.42;
  mix-blend-mode: multiply;
  will-change: transform;
}

.hero__orb--one {
  width: 230px;
  height: 230px;
  right: 7%;
  top: 8%;
  background: rgba(160,143,124,0.26);
  animation: heroFloatOne 16s ease-in-out infinite alternate;
}

.hero__orb--two {
  width: 170px;
  height: 170px;
  left: 10%;
  bottom: 12%;
  background: rgba(196,181,160,0.28);
  animation: heroFloatTwo 19s ease-in-out infinite alternate;
}

.hero__panel {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(160,143,124,0.24);
  border-radius: var(--radius);
  background: rgba(247,245,242,0.52);
  box-shadow: 0 24px 70px rgba(31,31,28,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translate3d(0, 0, 0);
  will-change: transform;
}

.hero__panel span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__panel strong {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.45rem);
  font-weight: 400;
  color: rgba(31,31,28,0.74);
}

.hero__panel--large {
  right: 5%;
  top: 30%;
  min-width: 220px;
  animation: heroPanelLarge 13s ease-in-out infinite alternate;
}

.hero__panel--small {
  left: 4%;
  bottom: 25%;
  min-width: 185px;
  animation: heroPanelSmall 15s ease-in-out infinite alternate;
}

.hero__line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,143,124,0.42), transparent);
  transform-origin: center;
  opacity: 0.6;
}

.hero__line--one {
  width: 72%;
  right: 0;
  top: 22%;
  transform: rotate(-7deg);
}

.hero__line--two {
  width: 54%;
  left: 4%;
  bottom: 19%;
  transform: rotate(11deg);
}

.hero__mark {
  position: absolute;
  right: 13%;
  bottom: 12%;
  font-family: var(--serif);
  font-size: clamp(4rem, 9vw, 8rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  color: rgba(31,31,28,0.045);
  line-height: 1;
  animation: heroMarkBreathe 12s ease-in-out infinite alternate;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  padding: 0 clamp(1.25rem, 5vw, 4rem);
  transform: translate3d(0, calc(var(--hero-scroll) * -0.16px), 0);
  will-change: transform;
}

.hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 30px;
  height: 1px;
  background: var(--accent);
}

.hero__heading {
  font-size: clamp(3rem, 7.5vw, 6.5rem);
  font-weight: 300;
  line-height: 1.08;
  max-width: 16ch;
  margin-bottom: 2rem;
  letter-spacing: -0.025em;
}

.hero__heading em {
  font-style: italic;
  color: var(--accent);
  position: relative;
  display: inline-block;
  text-shadow: 0 10px 30px rgba(160,143,124,0.08);
}

.hero__heading em::after {
  content: '';
  position: absolute;
  left: 0.08em;
  right: 0.04em;
  bottom: 0.05em;
  height: 0.08em;
  background: linear-gradient(90deg, transparent, rgba(160,143,124,0.32), transparent);
  transform: scaleX(0);
  transform-origin: left;
  animation: clarityUnderline 1.3s 1.05s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--secondary);
  max-width: 50ch;
  line-height: 1.75;
  margin-bottom: 2.75rem;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  right: clamp(1.25rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--secondary);
  z-index: 1;
  opacity: calc(1 - var(--hero-progress));
  transform: translate3d(0, calc(var(--hero-scroll) * 0.08px), 0);
  will-change: transform, opacity;
}
.hero__scroll::after {
  content: '';
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

body[data-page="services"] .nav,
body[data-page="process"] .nav {
  background: rgba(31, 31, 28, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

body[data-page="services"] .nav--scrolled,
body[data-page="process"] .nav--scrolled {
  background: rgba(31, 31, 28, 0.95);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

body[data-page="services"] .nav__logo,
body[data-page="services"] .nav__link,
body[data-page="process"] .nav__logo,
body[data-page="process"] .nav__link {
  color: rgba(247, 245, 242, 0.8);
}

body[data-page="services"] .nav__link:hover,
body[data-page="services"] .nav__link.active,
body[data-page="process"] .nav__link:hover,
body[data-page="process"] .nav__link.active {
  color: var(--bg);
}

body[data-page="services"] .nav__cta,
body[data-page="process"] .nav__cta {
  color: var(--ink);
  border-color: var(--bg);
  background: var(--bg);
}

body[data-page="services"] .nav__cta:hover,
body[data-page="process"] .nav__cta:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

body[data-page="services"] .nav--scrolled .nav__cta,
body[data-page="process"] .nav--scrolled .nav__cta {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--bg);
}

@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

body[data-page="home"] .hero .fade-up {
  opacity: 0;
  transform: translateY(34px);
  animation: heroReveal 1.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body[data-page="home"] .hero .hero__eyebrow { animation-delay: 0.18s; }
body[data-page="home"] .hero .hero__heading { animation-delay: 0.42s; }
body[data-page="home"] .hero .hero__sub { animation-delay: 0.78s; }
body[data-page="home"] .hero .cta-group { animation-delay: 1.05s; }

@keyframes heroReveal {
  from {
    opacity: 0;
    transform: translateY(34px);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes clarityUnderline {
  to { transform: scaleX(1); }
}

@keyframes heroGridDrift {
  from { transform: translate3d(-10px, 8px, 0); }
  to { transform: translate3d(12px, -10px, 0); }
}

@keyframes heroFloatOne {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-28px, 34px, 0) scale(1.08); }
}

@keyframes heroFloatTwo {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(34px, -24px, 0) scale(1.05); }
}

@keyframes heroPanelLarge {
  from { transform: translate3d(0, 0, 0) rotate(-1deg); }
  to { transform: translate3d(-14px, -18px, 0) rotate(1deg); }
}

@keyframes heroPanelSmall {
  from { transform: translate3d(0, 0, 0) rotate(1deg); }
  to { transform: translate3d(18px, 16px, 0) rotate(-1deg); }
}

@keyframes heroMarkBreathe {
  from { opacity: 0.65; transform: translate3d(0, 0, 0); }
  to { opacity: 1; transform: translate3d(10px, -8px, 0); }
}

/* ── Section Headers ── */
.section-header { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-header--center { text-align: center; }
.section-header--center p { margin: 0.75rem auto 0; }
.section-header p { margin-top: 0.75rem; }

/* ── Cards ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card__icon {
  width: 44px;
  height: 44px;
  background: var(--soft);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent);
  font-size: 1.1rem;
}

.card__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.card__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  color: var(--ink);
}

.card__body {
  font-size: 0.92rem;
  color: var(--secondary);
  line-height: 1.7;
  max-width: none;
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: 1.5rem;
  transition: gap var(--transition);
}
.card:hover .card__link { gap: 0.8rem; }
.card__link .arrow { transition: transform var(--transition); }
.card:hover .card__link .arrow { transform: translateX(3px); }

/* ══════════════════════════════════════════
   PREMIUM PORTFOLIO PAGE
   ══════════════════════════════════════════ */

/* Hero tweak */
.pf-hero { padding-bottom: clamp(2rem, 4vw, 3.5rem); }

/* ── Filter bar ── */
.pf-filter-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  position: sticky;
  top: 68px;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.pf-filter {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

.pf-filter__btn {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--secondary);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.pf-filter__btn:hover { border-color: var(--ink); color: var(--ink); }
.pf-filter__btn.active {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* ── Featured card ── */
.pf-featured {
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
}

.pf-featured__card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 24px 64px rgba(31,31,28,0.14);
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1), box-shadow 0.55s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none;
}
.pf-featured__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 36px 80px rgba(31,31,28,0.2);
}

.pf-featured__media {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  background: var(--soft);
}

.pf-featured__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16,1,0.3,1);
}
.pf-featured__card:hover .pf-featured__img { transform: scale(1.04); }

.pf-featured__badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--bg);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
}

.pf-featured__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 5vw, 3.5rem);
  background: var(--ink);
}
.pf-featured__body .label { color: var(--accent); }

.pf-featured__title {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
  max-width: 18ch;
}

.pf-featured__desc {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(247,245,242,0.65);
  max-width: 38ch;
  margin-bottom: 2rem;
}

.pf-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 0.2rem;
  transition: gap var(--transition), border-color var(--transition);
}
.pf-featured__card:hover .pf-featured__cta { gap: 0.9rem; border-color: rgba(255,255,255,0.7); }
.pf-featured__cta .arrow { transition: transform var(--transition); }
.pf-featured__card:hover .pf-featured__cta .arrow { transform: translateX(4px); }

/* ── Grid section ── */
.pf-grid-section { padding-top: clamp(2.5rem, 4vw, 3.5rem); }

.pf-section-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}
.pf-section-header .label { margin-bottom: 0; }

/* ── Project grid ── */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1rem, 1.5vw, 1.5rem);
}

.pf-item { position: relative; }
.pf-item--wide   { grid-column: span 7; }
.pf-item--narrow { grid-column: span 5; }
.pf-item--half   { grid-column: span 6; }

.pf-item__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  height: 100%;
}

.pf-item__media {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--soft);
  aspect-ratio: 4/3;
  flex-shrink: 0;
}
.pf-item--wide .pf-item__media { aspect-ratio: 16/10; }

.pf-item__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: transform 0.85s cubic-bezier(0.16,1,0.3,1);
}
.pf-item__thumb--gradient { position: absolute; inset: 0; }

.pf-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31,31,28,0.72) 0%, rgba(31,31,28,0.08) 55%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 1.5rem;
  border-radius: 12px;
}

.pf-item__view {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  transform: translateY(6px);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.pf-item__view .arrow { transition: transform var(--transition); }

.pf-item__link:hover .pf-item__media { box-shadow: 0 16px 48px rgba(31,31,28,0.14); }
.pf-item__link:hover .pf-item__thumb { transform: scale(1.05); }
.pf-item__link:hover .pf-item__overlay { opacity: 1; }
.pf-item__link:hover .pf-item__view { transform: translateY(0); }
.pf-item__link:hover .pf-item__view .arrow { transform: translateX(4px); }

.pf-item__meta {
  padding: 1.1rem 0.25rem 1.5rem;
}

.pf-item__cat {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.pf-item__title {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.4rem;
  transition: color var(--transition);
}
.pf-item__link:hover .pf-item__title { color: var(--accent-dk); }

.pf-item__desc {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--secondary);
  max-width: 44ch;
}

/* ── Legacy classes still used in case-study.tsx related cards ── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--soft);
  cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.16,1,0.3,1), box-shadow 0.55s cubic-bezier(0.16,1,0.3,1);
}
.portfolio-item--wide   { grid-column: span 7; }
.portfolio-item--narrow { grid-column: span 5; }
.portfolio-item--half   { grid-column: span 6; }
.portfolio-item--third  { grid-column: span 4; }
.portfolio-item__img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover;
  transition: transform 0.85s cubic-bezier(0.16,1,0.3,1); display: block;
}
.portfolio-item--wide .portfolio-item__img { aspect-ratio: 16/10; }
.portfolio-item:hover { transform: translate3d(0,-6px,0); box-shadow: 0 18px 48px rgba(31,31,28,0.12); }
.portfolio-item:hover .portfolio-item__img { transform: scale(1.055); }
.portfolio-item__img img {
  transition: transform 0.85s cubic-bezier(0.16,1,0.3,1);
  width: 100%; height: 100%; object-fit: cover; object-position: center; display: block;
}
.portfolio-item__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(31,31,28,0.85) 0%, rgba(31,31,28,0.1) 60%, transparent 100%);
  opacity: 0; transform: translate3d(0,12px,0);
  transition: opacity var(--transition), transform 0.55s cubic-bezier(0.16,1,0.3,1);
  display: flex; flex-direction: column; justify-content: flex-end; padding: 1.75rem;
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; transform: translate3d(0,0,0); }
.portfolio-item__overlay .card__label { color: var(--accent); margin-bottom: 0.3rem; }
.portfolio-item__overlay .card__title { color: var(--white); font-size: 1.25rem; margin-bottom: 0; }

/* Legacy filter (kept for any other pages referencing it) */
.portfolio-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55rem 1.25rem; border-radius: 100px; border: 1px solid var(--border);
  color: var(--secondary); background: transparent; cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ── Process Steps ── */
.process-list { display: flex; flex-direction: column; gap: 0; }

.process-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.process-step:last-child { border-bottom: none; }

.process-step__num {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 300;
  color: var(--border);
  line-height: 1;
  transition: color var(--transition);
}
.process-step:hover .process-step__num { color: var(--accent); }

.process-step__content { padding-top: 0.25rem; }

.process-step__title {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 400;
  margin-bottom: 0.6rem;
  color: var(--ink);
}

.process-step__body {
  font-size: 0.95rem;
  color: var(--secondary);
  max-width: 60ch;
}

/* ── Services ── */
.service-block {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--border);
}
.service-block:first-child { border-top: none; }

.service-block__inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.service-block__meta { position: sticky; top: 120px; }

.service-block__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.service-block__title {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 400;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.service-block__desc {
  font-size: 1rem;
  color: var(--secondary);
  line-height: 1.75;
  max-width: 45ch;
}

.service-block__includes {
  margin-top: 2rem;
}

.service-block__includes h5 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1rem;
}

.service-block__includes ul { display: flex; flex-direction: column; gap: 0.5rem; }
.service-block__includes li {
  font-size: 0.9rem;
  color: var(--secondary);
  padding-left: 1rem;
  position: relative;
}
.service-block__includes li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.8rem;
}

.service-block__who {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--soft);
  border-radius: var(--radius);
  border-left: 3px solid var(--accent);
}

.service-block__who h5 {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.service-block__who p {
  font-size: 0.9rem;
  color: var(--secondary);
  max-width: none;
}

/* ── Why Section ── */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.why-item {
  padding: 2.5rem 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);
  transition: background var(--transition);
}
.why-item:nth-child(2n) { border-right: none; }
.why-item:nth-last-child(-n+2) { border-bottom: none; }
.why-item:hover { background: rgba(255,255,255,0.04); }

.why-item__num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 1rem;
}

.why-item__title {
  font-family: var(--serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.why-item__body { font-size: 0.9rem; color: rgba(247,245,242,0.65); max-width: 38ch; }

/* ── Values ── */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.value-item {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}
.value-item:last-child { border-bottom: none; }
.value-item__marker { color: var(--accent); font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.value-item__text { }
.value-item__title { font-family: var(--serif); font-size: 1.3rem; font-weight: 400; color: var(--ink); margin-bottom: 0.25rem; }
.value-item__desc { font-size: 0.9rem; color: var(--secondary); max-width: none; }

/* ── Stats Strip ── */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat-item {
  padding: 2.5rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1;
  display: block;
}
.stat-item__label { font-size: 0.78rem; color: var(--secondary); margin-top: 0.4rem; }

/* ── CTA Section ── */
.cta-section {
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.cta-section h2 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  max-width: 22ch;
  margin: 0 auto 1.25rem;
  font-weight: 300;
}

.cta-section p {
  margin: 0 auto 2.5rem;
  max-width: 50ch;
  text-align: center;
}

/* ── Marquee ── */
.marquee-wrapper {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  padding: 1.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(247,245,242,0.62);
  contain: paint;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 34s linear infinite;
  white-space: nowrap;
  will-change: transform;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  padding: 0 2rem;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--secondary);
  opacity: 0.82;
}
.marquee-item::after {
  content: '·';
  color: var(--accent);
  font-style: normal;
}

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

/* ── Contact Form ── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group--full { grid-column: 1 / -1; }

.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(160, 143, 124, 0.12);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--border); }

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

.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2366635E' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }

.form-note { font-size: 0.82rem; color: var(--secondary); margin-top: 0.5rem; max-width: none; }

.form-error {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1.4;
  max-width: none;
}

/* ── Footer ── */
.footer {
  background: var(--ink);
  color: var(--bg);
  padding: clamp(3rem, 6vw, 5rem) 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(247,245,242,0.1);
  margin-bottom: 2rem;
}

.footer__brand { max-width: 32ch; }

.footer__logo {
  font-family: var(--serif);
  font-size: 1.4rem;
  color: var(--bg);
  margin-bottom: 1rem;
  display: block;
}
.footer__logo span { color: var(--accent); }

.footer__tagline { font-size: 0.88rem; color: rgba(247,245,242,0.55); max-width: none; line-height: 1.65; }

.footer__col-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.footer__links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer__link {
  font-size: 0.85rem;
  color: rgba(247,245,242,0.6);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--bg); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer__copy { font-size: 0.78rem; color: rgba(247,245,242,0.35); }

.footer__social { display: flex; gap: 1rem; }
.footer__social-link {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(247,245,242,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: rgba(247,245,242,0.5);
  transition: all var(--transition);
}
.footer__social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── About Page ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}

.about-img-wrap {
  position: relative;
}

.about-img-wrap__img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.about-img-wrap__badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--ink);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
}

.about-img-wrap__badge .num {
  font-family: var(--serif);
  font-size: 2rem;
  display: block;
  line-height: 1;
}

.about-img-wrap__badge .lbl {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: rgba(247,245,242,0.6);
}

/* ── Case Study ── */
.case-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin: 2rem 0;
}

.case-meta__item { }
.case-meta__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.25rem;
}
.case-meta__value { font-size: 0.92rem; color: var(--ink); font-weight: 500; }

.case-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin: 3rem 0;
}

.case-gallery__item { border-radius: var(--radius); overflow: hidden; }
.case-gallery__item--full { grid-column: 1 / -1; }
.case-gallery__item--half { grid-column: span 6; }
.case-gallery__item--third { grid-column: span 4; }

.case-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.case-content { max-width: 70ch; }

.case-section {
  margin-bottom: 3rem;
}
.case-section h3 {
  font-family: var(--serif);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.case-section p { max-width: none; }

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--secondary);
  margin-bottom: 2rem;
}
.breadcrumb a { transition: color var(--transition); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--border); }

/* ── Page Hero (inner pages) ── */
.page-hero {
  padding-top: 140px;
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background: var(--bg);
}

.page-hero--ink {
  background: var(--ink);
}

.page-hero__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 4rem); }

.page-hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.page-hero__eyebrow::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--accent); }

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 1.5rem;
}

.page-hero--ink h1 { color: var(--bg); }

.page-hero p {
  max-width: 52ch;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}
.page-hero--ink p { color: rgba(247,245,242,0.65); }

/* ── Animations ── */
.fade-up {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.fade-in.visible { opacity: 1; }

/* Stagger delays */
.delay-1 { transition-delay: 0.05s; }
.delay-2 { transition-delay: 0.1s; }
.delay-3 { transition-delay: 0.15s; }
.delay-4 { transition-delay: 0.2s; }
.delay-5 { transition-delay: 0.25s; }
.delay-6 { transition-delay: 0.3s; }

/* ── Horizontal Rule ── */
hr { border: none; border-top: 1px solid var(--border); margin: 0; }

/* ── Pill Tags ── */
.tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  background: var(--soft);
  border-radius: 100px;
  color: var(--secondary);
}

/* ── Image Placeholder (for demo) ── */
.img-placeholder {
  background: linear-gradient(135deg, var(--soft) 0%, var(--card-bg) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

/* ── Success Message ── */
.form-success {
  display: none;
  padding: 1.5rem;
  background: rgba(160, 143, 124, 0.1);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
  margin-top: 1rem;
}
.form-success.visible { display: block; }
.form-success p { color: var(--ink); font-weight: 500; max-width: none; text-align: center; }

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */

@media (max-width: 1400px) {
  .hero__visual {
    right: -4rem;
    width: min(34vw, 460px);
    opacity: 0.78;
  }
  .hero__panel--small {
    display: none;
  }
  .hero__panel--large {
    right: 0;
    top: 34%;
  }
}

@media (max-width: 1100px) {
  .hero__visual {
    right: -6rem;
    width: min(40vw, 440px);
    opacity: 0.72;
  }
  .hero__panel--small {
    display: none;
  }
  .hero__panel--large {
    right: 0;
    top: 34%;
  }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item { border-right: none; }
  .why-item:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,0.1); }
  .why-item:last-child { border-bottom: none; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3) { border-right: 1px solid var(--border); }
}

@media (max-width: 1180px) {
  .nav__links { display: none; }
  .nav__inner > .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  .nav__mobile .nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.dark-hero .nav__hamburger span,
  body.dark-hero .nav__hamburger.open span {
    background: var(--bg);
  }

  body.dark-hero .nav__mobile {
    background: var(--ink);
    color: var(--bg);
  }

  body.dark-hero .nav__mobile .nav__link {
    color: rgba(247,245,242,0.86);
  }

  body.dark-hero .nav__mobile .nav__link.active,
  body.dark-hero .nav__mobile .nav__link:hover {
    color: var(--bg);
  }

  body.dark-hero .nav__mobile .nav__cta {
    background: var(--bg);
    color: var(--ink);
    border: 1px solid rgba(247,245,242,0.7);
  }
}

@media (max-width: 900px) {
  .hero__visual {
    right: -4rem;
    top: 18%;
    width: min(58vw, 430px);
    height: 52vh;
    opacity: 0.62;
  }
  .hero__panel {
    padding: 0.9rem 1rem;
  }
  .hero__panel--small {
    display: none;
  }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .service-block__inner { grid-template-columns: 1fr; gap: 2rem; }
  .service-block__meta { position: static; }
  .about-intro { grid-template-columns: 1fr; }
  .about-img-wrap { max-width: 480px; }
  .portfolio-item--wide { grid-column: span 12; }
  .portfolio-item--narrow { grid-column: span 12; }
  .portfolio-item--half { grid-column: span 12; }
  .portfolio-item--third { grid-column: span 6; }
  .process-step { grid-template-columns: 56px 1fr; gap: 1.5rem; }

  /* Premium portfolio — tablet */
  .pf-filter-wrap { top: 60px; }
  .pf-featured__card { grid-template-columns: 1fr; }
  .pf-featured__media { min-height: 320px; }
  .pf-featured__body { padding: 2rem; }
  .pf-item--wide   { grid-column: span 12; }
  .pf-item--narrow { grid-column: span 12; }
  .pf-item--half   { grid-column: span 6; }
}

@media (max-width: 768px) {
  .nav {
    padding: 0.85rem 0;
  }

  .nav__inner {
    min-height: 34px;
  }

  .nav__links { display: none; }
  .nav__inner > .nav__cta { display: none; }
  .nav__hamburger { display: flex; }

  body.dark-hero .nav__hamburger span,
  body.dark-hero .nav__hamburger.open span {
    background: var(--bg);
  }

  body.dark-hero .nav__mobile {
    background: var(--ink);
    color: var(--bg);
  }

  body.dark-hero .nav__mobile .nav__link {
    color: rgba(247,245,242,0.86);
  }

  body.dark-hero .nav__mobile .nav__link.active,
  body.dark-hero .nav__mobile .nav__link:hover {
    color: var(--bg);
  }

  body.dark-hero .nav__mobile .nav__cta {
    display: inline-flex;
    background: var(--bg);
    color: var(--ink);
    border: 1px solid rgba(247,245,242,0.7);
  }

  .hero {
    min-height: auto;
    height: auto;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    padding-top: 5.75rem;
    padding-bottom: 3rem;
  }

  .hero__bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
  }

  .hero__scroll {
    display: none;
  }

  .hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    padding-top: 0;
    transform: none;
  }

  .hero__heading { font-size: clamp(2.4rem, 9vw, 3.5rem); }
  .hero__eyebrow {
    margin-bottom: 1.1rem;
  }
  .hero__heading {
    max-width: 100%;
    margin-bottom: 1.4rem;
  }
  .hero__sub {
    max-width: 100%;
    margin-bottom: 2rem;
  }
  .hero .cta-group {
    width: 100%;
    flex-direction: column;
    align-items: stretch !important;
    gap: 1rem;
  }
  .hero .cta-group .btn,
  .hero .cta-group a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero__bg-shape {
    right: -25%;
    top: 18%;
    width: 75%;
    height: 45%;
    max-width: none;
    opacity: 0.45;
    transform: none;
  }
  .hero__visual {
    display: none;
  }
  .hero__panel--large,
  .hero__mark {
    display: none;
  }

  .page-hero {
    padding-top: 6.75rem;
    padding-bottom: 2.75rem;
  }

  .page-hero[style] {
    padding-bottom: 2.75rem !important;
  }

  .breadcrumb {
    margin-bottom: 1.4rem;
  }

  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .portfolio-item--third { grid-column: span 12; }
  .case-gallery__item--half { grid-column: span 12; }
  .case-gallery__item--third { grid-column: span 12; }

  /* Premium portfolio — mobile */
  .pf-filter-wrap { top: 58px; }
  .pf-item--half   { grid-column: span 12; }
  .pf-featured__media { min-height: 260px; }
  .pf-featured__title { font-size: 1.5rem; }

  .footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 1rem; }

  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: 1px solid var(--border); }
  .stat-item:nth-child(2) { border-right: none; }

  .why-item { padding: 2rem 1.5rem; }
  .cta-group { flex-direction: column; align-items: flex-start; }
  .hero .cta-group { align-items: stretch; }

  .case-meta { gap: 1.25rem; }
}

@media (max-width: 480px) {
  .hero__scroll { display: none; }
  .hero {
    min-height: auto;
    padding-top: 5.25rem;
    padding-bottom: 2.5rem;
  }
  .hero__bg-shape {
    right: -35%;
    top: 22%;
    width: 85%;
    height: 38%;
    opacity: 0.35;
  }
  .page-hero {
    padding-top: 6.15rem;
    padding-bottom: 2.25rem;
  }
  .page-hero[style] {
    padding-bottom: 2.25rem !important;
  }
  .marquee-wrapper {
    padding: 1rem 0;
  }
  .stats-strip { grid-template-columns: 1fr 1fr; }
  .portfolio-filter { gap: 0.4rem; }
  .filter-btn { font-size: 0.68rem; padding: 0.45rem 0.9rem; }
  .process-step { grid-template-columns: 1fr; gap: 0.75rem; }
  .process-step__num { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .fade-up,
  .fade-in,
  body[data-page="home"] .hero .fade-up {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }

  .hero__content,
  .hero__bg-shape,
  .hero__visual,
  .hero__scroll,
  .portfolio-item__img img,
  .pf-item__thumb,
  .pf-featured__img {
    transform: none !important;
  }
  .pf-item__thumb[src], video.pf-item__thumb, video.pf-featured__img {
    animation-play-state: paused !important;
  }
}
