/*
Theme Name: LEO DESIGN
Theme URI: https://leodesignbangkok.com
Author: LEO DESIGN Co., Ltd
Author URI: https://leodesignbangkok.com
Description: Custom WordPress theme for LEO DESIGN Interior Design Studio, Bangkok. Design System v1.0 — Established Expertise × Contemporary Creativity.
Version: 1.0.0
License: Private
Text Domain: leo-design
*/

/* ============================================================
   LEO DESIGN CO., LTD — WEBSITE STYLESHEET
   Design System v1.0 — Established Expertise × Contemporary Creativity
   ============================================================ */

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

:root {
  /* LEO DESIGN Colour System */
  --leo-white:    #F7F7F4;
  --soft-stone:   #E5E2DC;
  --pale-taupe:   #C9C5BC;
  --arch-grey:    #96938D;
  --charcoal:     #292929;
  --leo-black:    #0B0B0B;

  --white:        var(--leo-white);
  --off-white:    var(--soft-stone);
  --light-gray:   var(--pale-taupe);
  --mid-gray:     var(--arch-grey);
  --dark:         var(--charcoal);
  --black:        var(--leo-black);

  --font-sans: 'Helvetica Now', 'Helvetica Neue', Helvetica, 'Inter', Arial, sans-serif;

  --nav-h: 72px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--leo-white);
  color: var(--charcoal);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }

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

ul, ol { list-style: none; }

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.02em;
  color: var(--charcoal);
}

h1 { font-size: clamp(3rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); }

p {
  font-size: clamp(0.9rem, 1.1vw, 1rem);
  line-height: 1.75;
  color: var(--arch-grey);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.section {
  padding: clamp(64px, 10vw, 128px) 0;
}

.section--off-white { background: var(--soft-stone); }
.section--stone     { background: var(--soft-stone); }
.section--taupe     { background: var(--pale-taupe); }
.section--dark      { background: var(--leo-black); }

/* ---------- GRID HELPERS ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 48px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 32px); }

/* ---------- LABEL ---------- */
.label {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--arch-grey);
}

/* ---------- DIVIDER ---------- */
.divider {
  width: 32px;
  height: 1px;
  background: var(--charcoal);
  margin: 20px 0;
}
.divider--center { margin: 20px auto; }

/* ---------- SECTION HEADER ---------- */
.section-header { margin-bottom: clamp(48px, 6vw, 80px); }
.section-header--center { text-align: center; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 16px 32px;
  border: 1px solid currentColor;
  border-radius: 0;
  cursor: pointer;
  transition: all 0.25s var(--ease-out);
}

.btn svg { width: 14px; height: 14px; flex-shrink: 0; }

.btn--primary {
  background: var(--charcoal);
  color: var(--leo-white);
  border-color: var(--charcoal);
}
.btn--primary:hover { background: var(--leo-black); border-color: var(--leo-black); }

.btn--black {
  background: var(--leo-black);
  color: var(--leo-white);
  border-color: var(--leo-black);
}
.btn--black:hover { background: var(--charcoal); border-color: var(--charcoal); }

.btn--outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn--outline:hover { background: var(--charcoal); color: var(--leo-white); }

.btn--outline-white {
  background: transparent;
  color: var(--leo-white);
  border-color: rgba(247,247,244,0.35);
}
.btn--outline-white:hover { background: var(--leo-white); color: var(--leo-black); border-color: var(--leo-white); }

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--leo-white);
  border-bottom: 1px solid var(--soft-stone);
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.nav.dark-nav {
  background: transparent;
  border-color: transparent;
}

.nav.scrolled {
  background: var(--leo-white);
  border-color: var(--soft-stone);
  box-shadow: 0 1px 0 var(--soft-stone);
}

.nav.dark-nav.scrolled { background: var(--leo-white); border-color: var(--soft-stone); }

.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(24px, 5vw, 80px);
}

.nav__logo { display: flex; flex-direction: column; }

.nav__logo-name {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1;
}

.dark-nav:not(.scrolled) .nav__logo-name { color: var(--leo-white); }

.nav__logo-sub {
  font-size: 0.48rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-top: 3px;
}

.dark-nav:not(.scrolled) .nav__logo-sub { color: rgba(247,247,244,0.45); }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
}

.nav__link {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--charcoal);
  transition: color 0.2s;
  position: relative;
}

.dark-nav:not(.scrolled) .nav__link { color: rgba(247,247,244,0.75); }

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.25s var(--ease-out);
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }

.nav__cta {
  padding: 10px 20px;
  border: 1px solid var(--pale-taupe);
  color: var(--charcoal) !important;
  background: transparent;
  transition: all 0.2s;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: var(--charcoal); border-color: var(--charcoal); color: var(--leo-white) !important; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__burger span { display: block; width: 22px; height: 1px; background: var(--charcoal); transition: all 0.3s; }

.dark-nav:not(.scrolled) .nav__burger span { background: var(--leo-white); }

.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--leo-white);
  z-index: 99;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 40px;
  padding: 80px 40px;
}
.nav__mobile.open { display: flex; }
.nav__mobile .nav__link { font-size: 1.2rem; letter-spacing: 0.15em; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100svh;
  min-height: 600px;
  background: var(--leo-black);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(60px, 8vw, 100px);
  overflow: hidden;
}

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

.hero__bg img,
.hero__bg .img-placeholder {
  position: absolute;
  inset: 0;
  opacity: 0.45;
}

.hero__content { position: relative; z-index: 2; width: 100%; }

.hero__eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,247,244,0.5);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.8rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--leo-white);
  max-width: 14ch;
  margin-bottom: 28px;
}

.hero__sub {
  font-size: clamp(0.88rem, 1.2vw, 1rem);
  color: rgba(247,247,244,0.55);
  max-width: 52ch;
  line-height: 1.75;
  margin-bottom: 44px;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 40px;
  right: clamp(24px, 5vw, 80px);
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(247,247,244,0.35);
  writing-mode: vertical-rl;
  z-index: 2;
}

/* ---------- IMAGE PLACEHOLDER ---------- */
.img-placeholder {
  width: 100%; height: 100%;
  background: var(--soft-stone);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.img-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, var(--pale-taupe) 50%, transparent 100%);
  animation: shimmer 1.8s infinite;
  background-size: 200% 100%;
}

@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.img-label {
  position: relative;
  z-index: 1;
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arch-grey);
  text-align: center;
  padding: 0 20px;
}

.project-img { object-fit: cover; width: 100%; height: 100%; display: block; }

/* ---------- STATS ---------- */
.stats {
  background: var(--leo-black);
  padding: clamp(40px, 6vw, 64px) 0;
  border-top: 1px solid rgba(247,247,244,0.05);
}

.stats__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats__item {
  padding: clamp(24px, 3vw, 40px);
  border-right: 1px solid rgba(247,247,244,0.06);
  text-align: center;
}
.stats__item:last-child { border-right: none; }

.stats__num {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--leo-white);
  margin-bottom: 8px;
}

.stats__label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arch-grey);
}

/* ---------- FEATURED GRID ---------- */
.featured-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  grid-template-rows: auto;
  gap: 2px;
  background: var(--pale-taupe);
}

.featured-grid__main { grid-column: 1; grid-row: 1 / 3; }
.featured-grid__aside { display: flex; flex-direction: column; gap: 2px; }

.featured-card {
  display: block;
  position: relative;
  overflow: hidden;
}

.featured-card--large .featured-card__img { aspect-ratio: 4/5; }
.featured-card--sm .featured-card__img    { aspect-ratio: 3/2; }

.featured-card__img {
  width: 100%;
  overflow: hidden;
  background: var(--soft-stone);
  position: relative;
}

.featured-card__img img,
.featured-card__img .img-placeholder {
  position: absolute;
  inset: 0;
  transition: transform 0.8s var(--ease-out);
}
.featured-card:hover .featured-card__img img,
.featured-card:hover .featured-card__img .img-placeholder { transform: scale(1.05); }

.featured-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,11,11,0.85) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: clamp(20px, 3vw, 40px);
  transition: background 0.3s;
}

.featured-card__info { color: var(--leo-white); }

.featured-card__tag {
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,247,244,0.6);
  margin-bottom: 8px;
}

.featured-card__title {
  font-size: clamp(1.1rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--leo-white);
  margin-bottom: 4px;
}

.featured-card__loc {
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: rgba(247,247,244,0.45);
}

/* ---------- SERVICES GRID ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--pale-taupe);
}

.service-item {
  background: var(--leo-white);
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3.5vw, 48px);
  transition: background 0.25s;
}
.service-item:hover { background: var(--soft-stone); }

.service-item__num {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-bottom: 32px;
}

.service-item__title {
  font-family: var(--font-sans);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

/* ---------- ABOUT SPLIT ---------- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 112px);
  align-items: center;
}

.about-split__img {
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--soft-stone);
  position: relative;
}

/* ---------- PROJECT CARDS ---------- */
.project-card { cursor: pointer; overflow: hidden; }

.project-card__img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
  background: var(--soft-stone);
  margin-bottom: 16px;
}

.project-card__img img,
.project-card__img .img-placeholder {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.project-card:hover .project-card__img img,
.project-card:hover .project-card__img .img-placeholder { transform: scale(1.04); }

.card__tag {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-bottom: 6px;
}

.card__title {
  font-family: var(--font-sans);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.1;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.card__meta {
  font-size: 0.7rem;
  color: var(--arch-grey);
  letter-spacing: 0.06em;
}

/* ---------- TEAM CARDS ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(32px, 5vw, 56px);
  max-width: 900px;
  margin: 0 auto;
}

.team-card__img {
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--soft-stone);
  margin-bottom: 28px;
  position: relative;
}

.team-card__name {
  font-family: var(--font-sans);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.team-card__role {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-bottom: 20px;
}

/* ---------- QUOTE BLOCK ---------- */
.quote-block { max-width: 820px; margin: 0 auto; }

.quote-block__text {
  font-family: var(--font-sans);
  font-size: clamp(1.5rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--leo-white);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

.quote-block__attr {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(247,247,244,0.4);
}

/* ---------- INFO ROWS ---------- */
.info-row {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--soft-stone);
}
.info-row:first-child { border-top: 1px solid var(--soft-stone); }

.info-row__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arch-grey);
  min-width: 130px;
  padding-top: 2px;
  flex-shrink: 0;
}

.info-row__value { font-size: 0.9rem; color: var(--charcoal); line-height: 1.6; }

/* ---------- CONTACT FORM ---------- */
.form { display: flex; flex-direction: column; gap: 24px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form__group { display: flex; flex-direction: column; gap: 10px; }

.form__label {
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--arch-grey);
}

.form__input,
.form__select,
.form__textarea {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--charcoal);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--pale-taupe);
  padding: 10px 0;
  outline: none;
  transition: border-color 0.25s;
  width: 100%;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus { border-color: var(--charcoal); }

.form__textarea { resize: none; height: 120px; line-height: 1.6; }
.form__select { cursor: pointer; }

/* ---------- FILTER BAR ---------- */
.filter-bar { display: flex; gap: 2px; flex-wrap: wrap; }

.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid var(--pale-taupe);
  border-radius: 0;
  background: transparent;
  color: var(--arch-grey);
  cursor: pointer;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--leo-white);
}

/* ---------- PROJECTS GRID ---------- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

/* ---------- TIMELINE ---------- */
.timeline { position: relative; padding-left: 24px; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 0;
  width: 1px;
  background: var(--soft-stone);
}

.timeline__item { position: relative; padding-bottom: 44px; }
.timeline__item::before {
  content: '';
  position: absolute;
  left: -28px; top: 8px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--charcoal);
}

.timeline__year {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-bottom: 6px;
}

.timeline__event {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.timeline__desc { font-size: 0.85rem; color: var(--arch-grey); line-height: 1.6; }

/* ---------- VALUE ITEMS ---------- */
.value-item {
  padding: clamp(28px, 3vw, 44px);
  background: var(--soft-stone);
  border-left: 2px solid var(--charcoal);
}

.value-item__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

/* ---------- CLIENT LOGOS ---------- */
.client-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--pale-taupe);
  border: 1px solid var(--pale-taupe);
}

.client-logo-item {
  background: var(--leo-white);
  aspect-ratio: 2/1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--arch-grey);
  padding: 16px;
  text-align: center;
  transition: background 0.2s;
}
.client-logo-item:hover { background: var(--soft-stone); }

/* ---------- PAGE HEADER ---------- */
.page-header {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 64px;
  background: var(--leo-white);
  border-bottom: 1px solid var(--soft-stone);
}
.page-header h1 { font-size: clamp(2.5rem, 6vw, 5rem); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--leo-black);
  color: rgba(247,247,244,0.35);
  padding: 80px 0 40px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(247,247,244,0.06);
  margin-bottom: 40px;
}

.footer__logo-name {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--leo-white);
  margin-bottom: 4px;
}

.footer__logo-sub {
  font-size: 0.55rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247,247,244,0.35);
  margin-bottom: 24px;
}

.footer__desc {
  font-size: 0.82rem;
  line-height: 1.7;
  color: rgba(247,247,244,0.3);
  max-width: 32ch;
}

.footer__heading {
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(247,247,244,0.4);
  margin-bottom: 20px;
}

.footer__links { display: flex; flex-direction: column; gap: 10px; }

.footer__link { font-size: 0.82rem; color: rgba(247,247,244,0.35); transition: color 0.2s; }
.footer__link:hover { color: var(--leo-white); }

.footer__contact p { font-size: 0.82rem; line-height: 1.85; color: rgba(247,247,244,0.35); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(247,247,244,0.18);
}

/* ---------- BLOG / ARTICLES ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(24px, 3vw, 40px);
}

.article-card { display: flex; flex-direction: column; }

.article-card__img {
  width: 100%;
  aspect-ratio: 3/2;
  overflow: hidden;
  position: relative;
  background: var(--soft-stone);
  margin-bottom: 22px;
}

.article-card__img img,
.article-card__img .img-placeholder {
  position: absolute;
  inset: 0;
  transition: transform 0.7s var(--ease-out);
}
.article-card:hover .article-card__img img,
.article-card:hover .article-card__img .img-placeholder { transform: scale(1.04); }

.article-card__cat {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-bottom: 10px;
}

.article-card__title {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.article-card:hover .article-card__title { color: var(--leo-black); }

.article-card__excerpt {
  font-size: 0.86rem;
  color: var(--arch-grey);
  line-height: 1.75;
  margin-bottom: 18px;
  flex: 1;
}

.article-card__meta {
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pale-taupe);
  display: flex;
  gap: 16px;
}

.article-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-top: 16px;
  font-weight: 500;
  transition: gap 0.25s var(--ease-out);
}
.article-card:hover .article-card__read { gap: 12px; }

/* ---------- ARTICLE PAGE ---------- */
.article-header {
  padding-top: calc(var(--nav-h) + 72px);
  padding-bottom: 60px;
  background: var(--soft-stone);
  border-bottom: 1px solid var(--pale-taupe);
}

.article-header__cat {
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-bottom: 20px;
}

.article-header__title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--charcoal);
  max-width: 22ch;
  margin-bottom: 28px;
}

.article-header__meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--arch-grey);
}

.article-header__meta-sep {
  width: 1px;
  height: 12px;
  background: var(--pale-taupe);
}

.article-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  overflow: hidden;
  background: var(--soft-stone);
  position: relative;
}

.article-body { max-width: 72ch; margin: 0 auto; }

.article-body p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--charcoal);
  margin-bottom: 28px;
}

.article-body h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--charcoal);
  margin: 56px 0 20px;
}

.article-body h3 {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin: 40px 0 16px;
}

.article-body blockquote {
  border-left: 2px solid var(--charcoal);
  padding: 4px 0 4px 32px;
  margin: 40px 0;
}

.article-body blockquote p {
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--charcoal);
  margin-bottom: 0;
}

.article-body img { width: 100%; display: block; margin: 40px 0; }

.article-body ul,
.article-body ol { padding-left: 24px; margin-bottom: 28px; color: var(--charcoal); }

.article-body li { font-size: 1rem; line-height: 1.8; margin-bottom: 8px; }

.article-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-bottom: 56px;
  transition: color 0.2s;
}
.article-nav:hover { color: var(--charcoal); }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- WP CONTENT RESET ---------- */
.wp-content img { max-width: 100%; height: auto; }
.entry-content, .wp-block-group { max-width: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .client-logos { grid-template-columns: repeat(4, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  h1 { font-size: clamp(2.2rem, 10vw, 3.5rem); }
  h2 { font-size: clamp(1.8rem, 7vw, 2.8rem); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .featured-grid { grid-template-columns: 1fr; gap: 2px; }
  .featured-grid__main { grid-column: 1; grid-row: 1; }
  .services-grid { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; max-width: 400px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
  .stats__item { border-right: none; border-bottom: 1px solid rgba(247,247,244,0.06); }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .client-logos { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
  .article-header__title { max-width: none; }
}

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
  .stats__inner { grid-template-columns: 1fr; }
  .client-logos { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================
   PAGE HERO (inner pages)
========================================================== */
.page-hero {
  padding: calc(var(--nav-h) + 80px) 0 64px;
  background: var(--leo-white);
  border-bottom: 1px solid var(--soft-stone);
}
.page-hero__sub {
  max-width: 560px;
  margin-top: 20px;
  color: var(--arch-grey);
  font-size: var(--text-lg);
  line-height: 1.6;
}

/* ==========================================================
   FILTER BAR (projects + blog)
========================================================== */
.filter-bar { padding: 24px 0; }
.filter-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.filter-btn {
  padding: 8px 20px;
  border: 1px solid var(--pale-taupe);
  background: transparent;
  font-family: inherit;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--charcoal);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.filter-btn:hover,
.filter-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--leo-white);
}

/* ==========================================================
   CONTACT GRID + FORM
========================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-form { width: 100%; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}
.form-group label {
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--charcoal);
  text-transform: uppercase;
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 16px;
  border: 1px solid var(--pale-taupe);
  background: var(--leo-white);
  font-family: inherit;
  font-size: var(--text-base);
  color: var(--leo-black);
  transition: border-color 0.2s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--charcoal);
}
.form-group textarea { resize: vertical; }

/* Contact info */
.contact-info-item { margin-bottom: 36px; }
.contact-info-item__label {
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-bottom: 8px;
}
.contact-info-item__value { font-size: var(--text-base); line-height: 1.6; }
.contact-info-item__value a { color: inherit; text-decoration: underline; }

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

/* ==========================================================
   TEAM GRID
========================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}
.team-card { display: flex; flex-direction: column; gap: 24px; }
.team-card__img {
  position: relative;
  aspect-ratio: 3/4;
  background: var(--soft-stone);
  overflow: hidden;
}
.team-card__name {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.team-card__role {
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--arch-grey);
  margin-top: 4px;
}
.team-card__bio {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--charcoal);
  margin-top: 8px;
}

/* ==========================================================
   CLIENTS GRID
========================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.client-item {
  padding: 32px 24px;
  background: var(--leo-white);
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--arch-grey);
  text-align: center;
  border: 1px solid var(--soft-stone);
}

@media (max-width: 768px) {
  .team-grid { grid-template-columns: 1fr; max-width: 400px; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .clients-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   PAGINATION
========================================================== */
.pagination { margin-top: 48px; text-align: center; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--pale-taupe);
  font-size: var(--text-sm);
  color: var(--charcoal);
  text-decoration: none;
  transition: all 0.2s;
}
.pagination .page-numbers.current,
.pagination .page-numbers:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--leo-white);
}
