@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inconsolata:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap");

/* ── Palette ── */
:root {
  --white: #ffffff;
  --smoke: #f6f6f6;
  --sage: #d9e1c5;
  --sage-dark: #bcc7a3;
  --gray: #8c8c8c;
  --onyx: #141414;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-sans: "Inconsolata", "Inter", monospace;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--onyx);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

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

ul, ol { list-style: none; }

button {
  font-family: inherit;
  cursor: pointer;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Container ── */
.container {
  width: min(1140px, 90vw);
  margin: 0 auto;
}

/* ── Section ── */
.section {
  padding: 80px 0;
}

.section--smoke {
  background: var(--smoke);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--onyx);
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 16px;
  max-width: 560px;
  line-height: 1.7;
}

/* ── Header / Navbar ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid #eee;
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}

.navbar .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.3px;
  color: var(--onyx);
}

.brand .logo-icon {
  width: 36px;
  height: 36px;
  background: var(--sage);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  color: var(--onyx);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  letter-spacing: 0.3px;
  padding: 4px 0;
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--onyx);
  transition: width 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--onyx);
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--onyx);
  background: var(--sage);
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  transition: background 0.2s;
}

.nav-cta:hover {
  background: var(--sage-dark);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid #eee;
  border-radius: 8px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--onyx);
  font-size: 22px;
}

.nav-toggle .material-symbols-outlined {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  font-size: 0;
  line-height: 0;
  color: inherit;
  position: relative;
  transition: background-color 0.2s ease, transform 0.28s ease;
}

.nav-toggle .material-symbols-outlined::before,
.nav-toggle .material-symbols-outlined::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transition: transform 0.28s ease, top 0.28s ease, opacity 0.2s ease;
}

.nav-toggle .material-symbols-outlined::before {
  top: -6px;
}

.nav-toggle .material-symbols-outlined::after {
  top: 6px;
}

.nav-toggle.is-active .material-symbols-outlined {
  background-color: transparent;
}

.nav-toggle.is-active .material-symbols-outlined::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle.is-active .material-symbols-outlined::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ── Hero ── */
.hero {
  padding: 60px 0 80px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 400;
  line-height: 1.08;
  color: var(--onyx);
  margin-bottom: 24px;
}

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

.hero-desc {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.75;
  max-width: 460px;
  margin-bottom: 32px;
}

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

.hero-portrait {
  position: relative;
}

.hero-portrait .img-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--smoke);
}

.hero-portrait .img-wrap .img-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
}

.hero-portrait .accent-block {
  position: absolute;
  bottom: -16px;
  left: -16px;
  width: 120px;
  height: 120px;
  background: var(--sage);
  border-radius: 12px;
  z-index: -1;
}

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #eee;
}

.hero-stat .num {
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--onyx);
  line-height: 1;
}

.hero-stat .txt {
  font-size: 13px;
  color: var(--gray);
  margin-top: 4px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  padding: 13px 28px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--onyx);
  color: var(--white);
}

.btn-primary:hover {
  background: #2a2a2a;
}

.btn-outline {
  background: transparent;
  color: var(--onyx);
  border: 1.5px solid var(--onyx);
}

.btn-outline:hover {
  background: var(--onyx);
  color: var(--white);
}

.btn-sage {
  background: var(--sage);
  color: var(--onyx);
}

.btn-sage:hover {
  background: var(--sage-dark);
}

/* ── Service cards ── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 32px 28px;
  transition: border-color 0.25s, transform 0.25s;
}

.service-card:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  background: var(--sage);
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  color: var(--onyx);
  font-size: 22px;
}

.service-card h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
}

/* ── Project cards ── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.project-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}

.project-card:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
}

.project-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--smoke);
}

.project-thumb .thumb-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}

.project-card:hover .project-thumb .thumb-bg {
  transform: scale(1.04);
}

.project-body {
  padding: 24px 28px;
}

.project-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.project-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--gray);
  background: var(--smoke);
  padding: 4px 10px;
  border-radius: 4px;
}

.project-body h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 8px;
}

.project-body p {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--onyx);
  transition: gap 0.2s;
}

.project-link:hover {
  gap: 10px;
}

/* ── Testimonials ── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 14px;
  padding: 32px;
}

.testimonial-card .stars {
  color: #e4b84e;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-author .avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 16px;
  color: var(--onyx);
}

.testimonial-author .name {
  font-weight: 600;
  font-size: 15px;
}

.testimonial-author .role {
  font-size: 13px;
  color: var(--gray);
}

/* ── CTA Banner ── */
.cta-banner {
  padding: 80px 0;
  background: var(--onyx);
  color: var(--white);
  text-align: center;
}

.cta-banner .section-title {
  color: var(--white);
}

.cta-banner .section-subtitle {
  color: rgba(255,255,255,0.6);
  margin: 0 auto 32px;
}

.cta-banner .btn-sage {
  font-size: 15px;
  padding: 15px 36px;
}

/* ── About page ── */
.about-section {
  padding-top: 120px;
}

.about-intro {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 60px;
  align-items: start;
}

.about-img {
  position: relative;
}

.about-img img {
  display: block;
  width: 100%;
  max-width: 480px;
  border-radius: 0;
  position: relative;
  z-index: 1;
}

.about-img-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 55%;
  height: 55%;
  background: var(--sage);
  z-index: 0;
  border-radius: 0;
}

.about-heading {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 24px;
}

.about-subtitle {
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.about-lead {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 24px;
}

.about-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

.skill-label {
  font-weight: 600;
  font-size: 14px;
  margin-right: 8px;
}

.skill-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  color: var(--onyx);
}

.skill-check {
  font-size: 18px;
  color: var(--sage-dark);
}

.about-desc {
  color: var(--gray);
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.about-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Horizontal Timeline ── */
.htimeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.htimeline-item {
  border-top: 2px solid #e0e0e0;
  padding-top: 20px;
}

.ht-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 12px;
}

.ht-year {
  font-family: var(--font-serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  color: var(--sage-dark);
  line-height: 1;
  margin-bottom: 12px;
}

.ht-title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 10px;
}

.ht-desc {
  font-size: 14px;
  color: var(--gray);
  line-height: 1.7;
}

/* ── Blog page ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background: var(--white);
  border: 1px solid #eee;
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s;
}

.blog-card:hover {
  border-color: var(--sage);
  transform: translateY(-4px);
}

.blog-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--smoke);
}

.blog-card .thumb .thumb-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s;
}

.blog-card:hover .thumb .thumb-bg {
  transform: scale(1.04);
}

.blog-card .body {
  padding: 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card .meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--gray);
  margin-bottom: 10px;
}

.blog-card .meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
}

.blog-card .tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--onyx);
  background: var(--sage);
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  width: fit-content;
}

.blog-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1.3;
}

.blog-card .desc {
  color: var(--gray);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-card .read-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--onyx);
  transition: gap 0.2s;
}

.blog-card .read-more:hover {
  gap: 10px;
}

/* ── Search & Filters ── */
.filter-bar {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 32px;
}

.search-wrap {
  position: relative;
  flex: 1;
  min-width: 240px;
}

.search-wrap .material-symbols-outlined {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray);
  font-size: 20px;
}

.search-wrap input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid #eee;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--onyx);
  background: var(--white);
  transition: border-color 0.2s;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--sage-dark);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border: 1px solid #eee;
  border-radius: 999px;
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.2s;
}

.chip:hover {
  border-color: var(--sage);
  color: var(--onyx);
}

.chip.active {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--onyx);
  font-weight: 600;
}

/* ── Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--smoke);
  cursor: pointer;
  transition: transform 0.3s;
}

.gallery-item:hover {
  transform: translateY(-4px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

body.modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.gallery-modal.is-visible {
  visibility: visible;
  pointer-events: auto;
}

.gallery-modal.open {
  opacity: 1;
}

.gallery-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-modal__panel {
  position: relative;
  width: min(920px, 92vw);
  max-height: 88vh;
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  z-index: 1;
  transform: translateY(18px) scale(0.965);
  opacity: 0;
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.gallery-modal.open .gallery-modal__backdrop {
  opacity: 1;
}

.gallery-modal.open .gallery-modal__panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.gallery-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--onyx);
  font-size: 24px;
  line-height: 1;
  display: grid;
  place-items: center;
  z-index: 2;
}

.gallery-modal__image {
  width: 100%;
  max-height: min(65vh, 640px);
  object-fit: cover;
  background: var(--smoke);
}

.gallery-modal__meta {
  padding: 18px 20px 22px;
}

.gallery-modal__category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--gray);
  margin-bottom: 8px;
}

.gallery-modal__title {
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  color: var(--onyx);
}

.gallery-modal__description {
  margin-top: 10px;
  color: var(--gray);
  font-size: 15px;
  line-height: 1.7;
  max-width: 72ch;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  margin-bottom: 16px;
}

.contact-info .lead {
  color: var(--gray);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid #eee;
}

.contact-detail:first-of-type {
  border-top: 1px solid #eee;
}

.contact-detail .cd-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  background: var(--sage);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--onyx);
}

.contact-detail .cd-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
}

.contact-detail .cd-value {
  font-size: 15px;
  font-weight: 500;
  color: var(--onyx);
}

.contact-form {
  background: var(--smoke);
  border-radius: 14px;
  padding: 36px;
}

.form-grid {
  display: grid;
  gap: 18px;
}

.form-grid label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--onyx);
  margin-bottom: 6px;
}

.input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--onyx);
  background: var(--white);
  transition: border-color 0.2s;
}

.input:focus {
  outline: none;
  border-color: var(--sage-dark);
  box-shadow: 0 0 0 3px rgba(217,225,197,0.3);
}

textarea.input {
  resize: vertical;
  min-height: 100px;
}

.alert {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  display: none;
}

/* ── Footer ── */
.footer {
  margin-top: auto;
  background: var(--onyx);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  max-width: 300px;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  padding: 4px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--sage);
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.2);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  transition: all 0.2s;
}

.footer-social a:hover {
  background: var(--sage);
  border-color: var(--sage);
  color: var(--onyx);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.5);
}

.footer-bottom a:hover {
  color: var(--sage);
}

/* ── Page header banner ── */
.page-header {
  background: var(--smoke);
  padding: 48px 0;
  text-align: center;
}

.page-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--gray);
  font-size: 16px;
}

/* ── Article page ── */
.article-section {
  padding-top: 48px;
}

.article-layout {
  max-width: 860px;
}

.article-backlink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  transition: gap 0.2s ease, color 0.2s ease;
}

.article-backlink:hover {
  gap: 12px;
  color: var(--onyx);
}

.article-hero {
  margin-bottom: 24px;
}

.article-hero__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background-color: var(--smoke);
  background-size: cover;
  background-position: center;
}

.article-meta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}

.article-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--onyx);
  background: var(--sage);
  padding: 5px 10px;
  border-radius: 4px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--gray);
  font-size: 13px;
}

.article-meta .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ccc;
}

.article-content {
  color: #3a3a3a;
  font-size: 16px;
  line-height: 1.85;
}

.article-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 400;
  line-height: 1.2;
  margin: 34px 0 12px;
  color: var(--onyx);
}

.article-content p + p {
  margin-top: 14px;
}

.article-empty-state {
  text-align: center;
}

/* ── Animations ── */
.animate-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-portrait { max-width: 400px; }
  .services-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .about-intro { grid-template-columns: 1fr; gap: 40px; }
  .about-img { max-width: 400px; }
  .htimeline { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s ease;
    z-index: 99;
  }

  .nav-links.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

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

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .article-meta-row { align-items: flex-start; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
}
