/* ==========================================================================
   YASSER PHOTOGRAPHY — Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  --font-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --color-bg: #ffffff;
  --color-surface: #f5f5f5;
  --color-text-main: #111111;
  --color-text-muted: #666666;
  --color-text-subtle: #8a8a8e;
  --color-border: #e6e6e6;
  --color-border-subtle: #f0f0f0;

  /* Project hover card — three greys, darkest to lightest */
  --hover-title: #3a3a3a;
  --hover-location: #7a7a7a;
  --hover-date: #a6a6a6;

  --header-height: 76px;
  --container-max: 1680px;
  --gutter-desktop: 40px;
  --gutter-mobile: 16px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-hover: 0.35s;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-hover) var(--ease), opacity var(--duration-hover) var(--ease);
}

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

figure { margin: 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.text-end { text-align: right; }

.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--gutter-desktop);
  padding-right: var(--gutter-desktop);
}

@media (max-width: 768px) {
  .site-container {
    padding-left: var(--gutter-mobile);
    padding-right: var(--gutter-mobile);
  }
}

/* --------------------------------------------------------------------------
   3. Header + collapsed menu
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
  z-index: 1000;
}

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

.brand-wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  white-space: nowrap;
  user-select: none;
}

.brand-wordmark:hover { opacity: 0.7; }

.menu { position: relative; }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background: none;
  border: 0;
  padding: 0.5rem 0;
  cursor: pointer;
  color: var(--color-text-main);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.menu-toggle-icon {
  position: relative;
  width: 22px;
  height: 10px;
}

.menu-toggle-icon span {
  position: absolute;
  right: 0;
  height: 1.5px;
  background-color: currentColor;
  transition: transform 0.35s var(--ease), width 0.35s var(--ease), top 0.35s var(--ease);
}

.menu-toggle-icon span:first-child { top: 0; width: 22px; }
.menu-toggle-icon span:last-child { top: 8.5px; width: 14px; }

.menu-toggle:hover .menu-toggle-icon span:last-child { width: 22px; }

.menu.open .menu-toggle-icon span { top: 4.25px; width: 20px; }
.menu.open .menu-toggle-icon span:first-child { transform: rotate(45deg); }
.menu.open .menu-toggle-icon span:last-child { transform: rotate(-45deg); }

/* Links open in one horizontal row under the toggle, inside the white header */
.menu-panel {
  position: absolute;
  top: 100%;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 0.25s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}

.menu.open .menu-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.3s var(--ease), transform 0.4s var(--ease), visibility 0s;
}

.menu-link {
  position: relative;
  padding: 0.15rem 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.menu-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--duration-hover) var(--ease);
}

.menu-link:hover,
.menu-link:focus-visible,
.menu-link.active {
  color: var(--color-text-main);
}

.menu-link:hover::after,
.menu-link.active::after { width: 100%; }

/* --------------------------------------------------------------------------
   4. Home — full-height hero slider
   Photos fill the screen with object-fit: cover, so they are scaled evenly
   (never stretched) and only the edges are trimmed.
   -------------------------------------------------------------------------- */
.hero-slider {
  position: relative;
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));
  min-height: 420px;
  overflow: hidden;
  background-color: #0d0d0d;
}

.hero-slider {
  cursor: grab;
  touch-action: pan-y; /* vertical scroll stays native, horizontal swipes go to the slider */
  user-select: none;
  -webkit-user-select: none;
}

.hero-slider.is-dragging { cursor: grabbing; }

.hero-track {
  display: flex;
  height: 100%;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  -webkit-user-drag: none;
}

/* Shade behind the text so it stays readable on bright photos */
.hero-slider::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-captions {
  position: absolute;
  left: var(--gutter-desktop);
  right: 220px;
  bottom: 2.25rem;
  min-height: 4rem;
  z-index: 2;
}

.hero-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  color: #ffffff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s var(--ease), visibility 0s linear 0.6s;
}

.hero-caption.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.7s ease 0.35s, transform 0.9s var(--ease) 0.35s, visibility 0s;
}

.hero-caption-title {
  margin: 0 0 0.55rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-transform: uppercase;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.3);
}

.hero-caption-title a:hover { opacity: 0.8; }

.hero-caption-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  row-gap: 0.25rem;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
}

.hero-caption-meta span + span::before {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.8em;
  margin: 0 0.85rem;
  vertical-align: -0.05em;
  background-color: rgba(255, 255, 255, 0.45);
}

.hero-caption-meta span:last-child { color: rgba(255, 255, 255, 0.65); }

.hero-controls {
  position: absolute;
  right: var(--gutter-desktop);
  bottom: 2.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #ffffff;
  z-index: 2;
}

.hero-counter {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  opacity: 0.85;
}

.hero-arrow {
  background: none;
  border: 0;
  padding: 0 0.25rem;
  color: inherit;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.75;
}

.hero-arrow:hover { opacity: 1; }

@media (max-width: 768px) {
  .hero-captions {
    left: var(--gutter-mobile);
    right: var(--gutter-mobile);
    bottom: 4.25rem;
  }
  .hero-caption-title { font-size: 1.2rem; }
  .hero-caption-meta { font-size: 0.66rem; letter-spacing: 0.1em; }
  .hero-caption-meta span + span::before { margin: 0 0.55rem; }
  .hero-controls { left: var(--gutter-mobile); right: auto; bottom: 1.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-caption { transition: none; }
}

/* --------------------------------------------------------------------------
   5. Projects page — filters, grid size, grid
   -------------------------------------------------------------------------- */
.projects-main {
  padding-top: 2rem;
  padding-bottom: 4rem;
}

.archive-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.75rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.filter-btn {
  position: relative;
  background: none;
  border: 0;
  padding: 0.35rem 0;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  cursor: pointer;
}

.filter-btn::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--color-text-main);
  transition: width var(--duration-hover) var(--ease);
}

.filter-btn:hover,
.filter-btn.active { color: var(--color-text-main); }
.filter-btn.active::after { width: 100%; }

.filter-count {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 400;
  color: var(--color-text-subtle);
  margin-left: 0.2rem;
}

.view-density-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.density-btn {
  display: inline-flex;
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  padding: 0.4rem 0.5rem;
  color: var(--color-text-subtle);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.density-btn:hover { color: var(--color-text-main); }

.density-btn.active {
  color: var(--color-text-main);
  border-color: var(--color-border);
}

.project-grid-container {
  display: grid;
  width: 100%;
}

/* 9 in a row */
.grid-density-9 { grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 1536px) { .grid-density-9 { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; } }
@media (max-width: 1280px) { .grid-density-9 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 992px)  { .grid-density-9 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .grid-density-9 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* 6 in a row */
.grid-density-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1280px) { .grid-density-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 768px)  { .grid-density-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; } }
@media (max-width: 480px)  { .grid-density-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }

/* 2 in a row */
.grid-density-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem 2.5rem; }
@media (max-width: 768px) { .grid-density-2 { grid-template-columns: 1fr; gap: 2rem; } }

.project-card {
  display: flex;
  flex-direction: column;
  position: relative;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.project-card-link {
  display: block;
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--color-surface);
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.project-card:hover .project-image { transform: scale(1.03); }

/* Hover card: title → location → date, all in greys */
.project-hover-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0.75rem 0.65rem;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
  z-index: 2;
}

.project-card:hover .project-hover-overlay,
.project-card-link:focus-visible .project-hover-overlay { opacity: 1; }

.hover-project-title {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.02em;
  color: var(--hover-title);
  margin: 0 0 0.3rem 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hover-project-location {
  font-size: 0.68rem;
  line-height: 1.3;
  color: var(--hover-location);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hover-project-date {
  margin-top: auto;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--hover-date);
}

.grid-density-6 .project-hover-overlay { padding: 0.9rem 0.8rem; }
.grid-density-6 .hover-project-title { font-size: 0.86rem; }
.grid-density-6 .hover-project-location { font-size: 0.76rem; }
.grid-density-6 .hover-project-date { font-size: 0.74rem; }

.grid-density-2 .project-hover-overlay { padding: 1.5rem 1.25rem; }
.grid-density-2 .hover-project-title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.grid-density-2 .hover-project-location { font-size: 0.9rem; }
.grid-density-2 .hover-project-date { font-size: 0.86rem; }

/* Caption under the image — only in the 2-in-a-row view */
.project-info-bottom { display: none; }

.grid-density-2 .project-info-bottom {
  display: block;
  margin-top: 0.9rem;
}

.project-title {
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hover-title);
  margin: 0 0 0.2rem 0;
  line-height: 1.35;
}

.project-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--hover-location);
}

.meta-separator { color: var(--hover-date); }

/* --------------------------------------------------------------------------
   6. Project page
   -------------------------------------------------------------------------- */
.project-detail-header { padding: 1.5rem 0 2rem 0; }

.back-link-top {
  display: inline-block;
  margin-bottom: 0.9rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.back-link-top:hover { color: var(--color-text-main); }

.project-detail-title {
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0 0 1.1rem 0;
  text-wrap: balance;
}

.project-detail-meta-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.meta-table-item {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.meta-item-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 0.25rem;
}

.meta-item-value {
  font-size: 0.9rem;
  font-weight: 500;
}

.project-lead-narrative {
  max-width: 880px;
  margin-top: 2rem;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #333333;
}

/* Masonry gallery — photos keep their own proportions, stacked in columns.
   main.js distributes them left-to-right; CSS columns are the no-JS fallback. */
.project-masonry {
  --masonry-gap: 12px;
  column-count: 5;
  column-gap: var(--masonry-gap);
  margin-bottom: 4rem;
}

.project-masonry.is-arranged {
  column-count: initial;
  display: flex;
  align-items: flex-start;
  gap: var(--masonry-gap);
}

.masonry-column {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--masonry-gap);
}

.masonry-item {
  break-inside: avoid;
  margin: 0 0 var(--masonry-gap);
  background-color: var(--color-surface);
  overflow: hidden;
  cursor: zoom-in;
}

.is-arranged .masonry-item { margin: 0; }

.masonry-image {
  width: 100%;
  height: auto;
  transition: transform 0.6s var(--ease), opacity 0.3s ease;
}

.masonry-item:hover .masonry-image { transform: scale(1.025); }

@media (max-width: 1200px) { .project-masonry { column-count: 4; } }
@media (max-width: 900px)  { .project-masonry { column-count: 3; } }
@media (max-width: 600px)  { .project-masonry { column-count: 2; --masonry-gap: 8px; } }

.project-pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 0 3.5rem 0;
  border-top: 1px solid var(--color-border);
}

.pagination-item {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.pagination-label {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
  margin-bottom: 0.3rem;
}

.pagination-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pagination-title:hover { color: var(--color-text-muted); }

.pagination-center-all {
  padding: 0.5rem 1.25rem;
  border: 1px solid var(--color-border);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pagination-center-all:hover {
  background-color: var(--color-text-main);
  border-color: var(--color-text-main);
  color: #ffffff;
}

@media (max-width: 900px) {
  .project-detail-title { font-size: 1.6rem; }
  .project-detail-meta-table { grid-template-columns: 1fr 1fr; }
  .project-pagination-bar { flex-direction: column; text-align: center; }
  .pagination-item, .text-end { text-align: center; }
}

/* --------------------------------------------------------------------------
   7. Lightbox
   -------------------------------------------------------------------------- */
.lightbox-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-modal.active { opacity: 1; pointer-events: auto; }

.lightbox-header {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 64px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1.5rem;
  color: var(--color-text-main);
}

.lightbox-counter {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--color-text-subtle);
}

.lightbox-close-btn,
.lightbox-nav-btn {
  background: none;
  border: 0;
  color: var(--color-text-main);
  cursor: pointer;
  opacity: 0.75;
  transition: opacity 0.2s ease;
}

.lightbox-close-btn { font-size: 1.4rem; padding: 8px 12px; }
.lightbox-close-btn:hover, .lightbox-nav-btn:hover { opacity: 1; }

.lightbox-content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: grab;
  touch-action: pan-y pinch-zoom; /* horizontal swipes go to the viewer */
  user-select: none;
  -webkit-user-select: none;
}

.lightbox-content.is-dragging { cursor: grabbing; }

.lightbox-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  -webkit-user-drag: none;
  will-change: transform;
}

.lightbox-nav-btn {
  position: absolute;
  z-index: 2;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  font-size: 2rem;
}

.lightbox-nav-btn.prev { left: 1rem; }
.lightbox-nav-btn.next { right: 1rem; }

.lightbox-caption-bottom {
  position: absolute;
  bottom: 1.25rem;
  left: 2rem; right: 2rem;
  text-align: center;
  color: var(--color-text-muted);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

@media (max-width: 768px) {
  .lightbox-nav-btn.prev { left: 0; }
  .lightbox-nav-btn.next { right: 0; }
}

/* --------------------------------------------------------------------------
   8. Who Am I
   -------------------------------------------------------------------------- */
.about-section {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 5rem;
  align-items: center;
  padding: 4rem 0 5rem 0;
  min-height: calc(100vh - var(--header-height));
}

.about-photo img {
  width: 100%;
  max-height: 80vh;
  object-fit: cover;
  object-position: top;
}

.page-title {
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 1.75rem 0;
}

.about-text {
  max-width: 560px;
}

.about-text p {
  font-size: 1.02rem;
  line-height: 1.8;
  color: #444444;
  margin: 0 0 1.2rem 0;
}

.text-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}

.text-link:hover { color: var(--color-text-muted); }

@media (max-width: 900px) {
  .about-section {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 0 3rem 0;
    min-height: 0;
  }
  .about-photo img { max-height: 70vh; }
  .page-title { font-size: 1.5rem; }
}

/* --------------------------------------------------------------------------
   9. Get in Touch
   -------------------------------------------------------------------------- */
.contact-hero {
  height: 52vh;
  min-height: 300px;
  overflow: hidden;
  background-color: var(--color-surface);
}

.contact-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-section { padding-top: 3rem; padding-bottom: 4.5rem; }

.contact-section .page-title { margin-bottom: 1rem; }

.contact-intro {
  max-width: 640px;
  margin: 0 0 2.5rem 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #444444;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  min-width: 0;
}

.contact-item > div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}

.contact-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  color: var(--color-text-main);
}

.contact-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-subtle);
}

.contact-value {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.contact-value a { border-bottom: 1px solid var(--color-border); }
.contact-value a:hover { border-color: currentColor; }

.contact-social {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  padding-top: 2rem;
}

.contact-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
}

.contact-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.contact-social-link:hover { color: var(--color-text-main); }

@media (max-width: 900px) {
  .contact-hero { height: 36vh; }
  .contact-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* --------------------------------------------------------------------------
   Footer — one line: copyright · social · notice
   -------------------------------------------------------------------------- */
:root { --footer-height: 56px; }

.site-footer {
  border-top: 1px solid var(--color-border-subtle);
  background-color: var(--color-bg);
}

.footer-inner {
  min-height: var(--footer-height);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--color-text-subtle);
}

.footer-right { text-align: right; }

.footer-social {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.footer-social-link {
  display: inline-flex;
  color: var(--color-text-muted);
}

.footer-social-link span { display: none; }
.footer-social-link:hover { color: var(--color-text-main); }

/* Home: the slider + footer fill exactly one screen */
.page-home .hero-slider {
  height: calc(100vh - var(--header-height) - var(--footer-height));
  height: calc(100svh - var(--header-height) - var(--footer-height));
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.5rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
  .footer-right { text-align: center; }
  .footer-social { order: -1; }
  .page-home .hero-slider {
    height: calc(100vh - var(--header-height));
    height: calc(100svh - var(--header-height));
  }
}

/* --------------------------------------------------------------------------
   10. Small screens
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .brand-wordmark { font-size: 0.82rem; letter-spacing: 0.16em; }
  .menu-toggle-label { display: none; }
  .menu-toggle { padding: 0.6rem 0 0.6rem 0.6rem; }
  .menu-panel { gap: 0.9rem; }
  .menu-link { font-size: 0.6rem; letter-spacing: 0.1em; }
}

.client-role {
  color: var(--color-text-subtle);
  font-weight: 400;
}
