/* Suhaib Attar — mockup-aligned portfolio */
:root {
  --bg-page: #f7f7f5;
  --bg-input: #eceae8;
  --text: #1a1a1a;
  --text-alt: #111111;
  --text-soft: #5a5a58;
  --white: #ffffff;
  --line: rgba(26, 26, 26, 0.1);
  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --duration: 0.7s;
  --reveal-duration: 1.05s;
  --section-space: clamp(4.25rem, 10vw, 7.5rem);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: clamp(4.5rem, 10vw, 6rem);
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background-color: var(--bg-page);
  font-size: 0.9375rem;
  line-height: 1.65;
  min-height: 100%;
  min-height: 100dvh;
}

.font-serif {
  font-family: var(--font-display);
}

.text-soft {
  color: var(--text-soft) !important;
}

/* ——— Navigation ——— */
.navbar-sa {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1040;
  padding-top: 1.35rem;
  padding-bottom: 1.35rem;
  transition: background-color var(--duration) var(--ease),
    padding var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.navbar-sa.is-scrolled {
  background-color: var(--white) !important;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
  box-shadow: 0 1px 0 var(--line);
}

.navbar-sa.on-hero:not(.is-scrolled) {
  background-color: transparent !important;
}

.navbar-sa.on-hero:not(.is-scrolled) .navbar-brand,
.navbar-sa.on-hero:not(.is-scrolled) .nav-link {
  color: var(--white) !important;
}

.navbar-sa.on-hero:not(.is-scrolled) .nav-link:hover {
  color: rgba(255, 255, 255, 0.82) !important;
}

.navbar-brand {
  font-family: var(--font-display) !important;
  font-size: 1.15rem !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text) !important;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.72rem !important;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: none;
  color: var(--text) !important;
  padding: 0.4rem 0.85rem !important;
}

.nav-link:hover {
  opacity: 0.65;
}

.navbar-sa.on-hero:not(.is-scrolled) .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.navbar-sa.on-hero:not(.is-scrolled) .navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

@media (max-width: 991.98px) {
  .navbar-sa.on-hero:not(.is-scrolled) {
    background: rgba(0, 0, 0, 0.22) !important;
  }

  .navbar-sa .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem 0 0.25rem;
  }

  .navbar-sa.is-scrolled .navbar-collapse,
  .ab-page .navbar-sa .navbar-collapse,
  .wk-page .navbar-sa .navbar-collapse,
  .comm-page .navbar-sa .navbar-collapse {
    background: var(--white);
    border-top: 1px solid var(--line);
  }
}

/* ——— Hero ——— */
.hero {
  /* vh → dvh → lvh: mobile often paints a short strip of page bg below hero when
     dvh lags the real visible height; lvh matches the largest viewport (no UI chrome). */
  min-height: 100vh;
  min-height: 100dvh;
  min-height: 100lvh;
  display: flex;
  flex-direction: column;
  background-color: #1a1918;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.28) 42%,
      rgba(0, 0, 0, 0.2) 100%
    ),
    linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0%, transparent 55%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  /* Top of hero copy sits just below the viewport’s vertical midline */
  padding-top: max(5.5rem, calc(50dvh + 0.35rem));
  padding-bottom: 5.5rem;
}

.hero-inner > .row {
  max-width: 100%;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.85rem, 7vw, 4.75rem);
  font-weight: 500;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: -0.02em;
}

.hero-tagline {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 400;
  font-style: italic;
  color: rgba(255, 255, 255, 0.95);
}

.scroll-hint {
  position: absolute;
  bottom: 1.75rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0.72;
}

.mouse-icon {
  width: 22px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  position: relative;
}

.mouse-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 3px;
  height: 6px;
  margin-left: -1.5px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 2px;
  animation: mouse-wheel 2.2s ease-in-out infinite;
}

@keyframes mouse-wheel {
  0%,
  100% {
    opacity: 0.35;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(6px);
  }
}

/* ——— Sections ——— */
.section-label {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 1rem;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

.link-minimal {
  display: inline-block;
  margin-top: 0.25rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.35);
  padding-bottom: 2px;
  transition: border-color var(--reveal-duration) ease, opacity var(--reveal-duration) ease;
}

.link-minimal:hover {
  color: var(--text);
  border-bottom-color: var(--text);
  opacity: 0.8;
}

.section-pad-y {
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

/* One gap between sections — avoid doubling bottom + top padding */
.section-pad-y + .section-pad-y,
.comm-section + .section-pad-y {
  padding-top: 0;
}

.contact-top-rule {
  border-top: 1px solid var(--line);
}

/* ——— Selected works grid ——— */
.work-thumb {
  overflow: hidden;
  background: #dedbd6;
  aspect-ratio: 1 / 1;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--reveal-duration) var(--ease);
}

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

.work-caption-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 0.15rem;
}

.work-caption-meta {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-soft);
}

/* ——— About (mockup: image fills left column edge-to-edge) ——— */
.about-photo-col {
  padding: 0;
  overflow: hidden;
  min-height: min(72vw, 24rem);
}

.about-photo {
  margin: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  display: block;
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 52% 38%;
}

@media (max-width: 991.98px) {
  .about-photo img {
    object-position: 48% 58%;
  }
}

@media (min-width: 992px) {
  .about-photo-col {
    min-height: 0;
  }

  .about-photo img {
    object-position: 54% 36%;
  }
}

.section-about {
  background: var(--bg-page);
}

/* ——— Mural process (scroll-triggered sketch → mural, opacity-only) ——— */
.wall-process-wrap {
  max-width: min(100%, 72rem);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 3rem);
}

.wall-process-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 3rem);
}

.wall-process-copy {
  min-width: 0;
}

.wall-process-intro {
  font-size: 0.92rem;
  line-height: 1.75;
  max-width: 22rem;
}

.wall-process-intro-line {
  display: block;
}

.wall-process-heading {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  max-width: 22rem;
}

.wall-process-heading-line {
  display: block;
}

.wall-process-heading-line + .wall-process-heading-line {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .wall-process-item {
    flex-direction: row;
    align-items: center;
    gap: clamp(3rem, 5vw, 5rem);
  }

  .wall-process-copy {
    flex: 0 1 22rem;
    max-width: 22rem;
  }

  .wall-process-stage {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: flex-start;
  }

  .wall-process-viewport {
    width: min(100%, 32rem);
    margin-inline: 0;
  }
}

@media (max-width: 767.98px) {
  .wall-process-heading {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
    max-width: none;
  }

  .wall-process-intro {
    max-width: none;
  }
}

.wall-process-stage {
  position: relative;
  margin: 0;
}

.wall-process-viewport {
  position: relative;
  overflow: hidden;
  background: #141413;
  aspect-ratio: 3 / 4;
  width: min(100%, 28rem);
  max-height: min(78vh, 42rem);
  margin-inline: auto;
  isolation: isolate;
}

.wall-process-base {
  z-index: 0;
}

.wall-process-sketch {
  z-index: 1;
  filter: contrast(2.15) grayscale(1) brightness(1.14);
}

.wall-process-art {
  z-index: 2;
}

.wall-process-base,
.wall-process-sketch,
.wall-process-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
  display: block;
  user-select: none;
  pointer-events: none;
}

.wall-process-sketch,
.wall-process-art {
  opacity: 0;
}

.wall-process-invite {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 1.5rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.55);
  opacity: 1;
  transition: opacity 0.6s var(--ease);
  pointer-events: none;
}

.wall-process-stage.is-playing .wall-process-invite {
  opacity: 0;
}

.wall-process-stage.is-playing .wall-process-sketch {
  animation: muralSketch 5.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.wall-process-stage.is-playing .wall-process-art {
  animation: muralAlive 5.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes muralSketch {
  0% {
    opacity: 0;
  }
  14% {
    opacity: 0.1;
  }
  30% {
    opacity: 0.34;
  }
  44% {
    opacity: 0.48;
  }
  54% {
    opacity: 0.42;
  }
  66% {
    opacity: 0.22;
  }
  100% {
    opacity: 0;
  }
}

@keyframes muralAlive {
  0%,
  30% {
    opacity: 0;
  }
  42% {
    opacity: 0.14;
  }
  54% {
    opacity: 0.34;
  }
  66% {
    opacity: 0.58;
  }
  78% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}

@media (max-width: 991.98px) {
  .wall-process-viewport {
    max-height: min(62vh, 34rem);
  }

  .wall-process-intro {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wall-process-stage.is-playing .wall-process-sketch {
    animation: none !important;
    opacity: 0 !important;
  }

  .wall-process-stage.is-playing .wall-process-art {
    animation: none !important;
    opacity: 1 !important;
  }

  .wall-process-stage.is-playing .wall-process-invite {
    opacity: 0;
  }
}

/* ——— Gated commissions page (after inquiry only) ——— */
.comm-page {
  background: var(--bg-page);
}

.inquiry-welcome {
  padding-top: max(6.5rem, 11vw);
  padding-bottom: var(--section-space);
}

.inquiry-welcome-lead {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-soft);
  max-width: 36rem;
}

.comm-page .comm-section {
  border-top: none;
}

.about-copy {
  max-width: 32rem;
  margin-left: 0;
  margin-right: auto;
}

.about-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #8c8a86;
  margin: 0 0 1.35rem;
}

.about-title {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 4.2vw, 3.35rem);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--text);
  margin: 0 0 1.65rem;
}

.about-lead {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.82;
  letter-spacing: 0.015em;
  color: #4f4e4b;
  margin: 0 0 2rem;
  max-width: 29rem;
}

.about-link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid rgba(26, 26, 26, 0.22);
  padding-bottom: 0.2rem;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.about-link:hover {
  color: var(--text);
  border-bottom-color: var(--text);
}

/* ——— Collaborations: heading + image grid ——— */
#collaborations {
  scroll-margin-top: clamp(4.5rem, 10vw, 6rem);
}

.collab-head {
  max-width: none;
}

.collab-head .section-heading {
  white-space: nowrap;
  font-size: clamp(1.35rem, 3.4vw + 0.35rem, 3.25rem);
}

@media (max-width: 520px) {
  .collab-head .section-heading {
    white-space: normal;
    font-size: clamp(1.2rem, 6.2vw + 0.2rem, 2.4rem);
  }
}

.collab-tile {
  position: relative;
  display: block;
  overflow: hidden;
  background: #dedbd6;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  color: inherit;
  container-type: inline-size;
  isolation: isolate;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.collab-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.52) 0%,
    rgba(0, 0, 0, 0.68) 38%,
    rgba(0, 0, 0, 0.88) 72%,
    rgba(0, 0, 0, 0.94) 100%
  );
}

.collab-tile-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.collab-tile-copy {
  position: absolute;
  top: 50%;
  bottom: clamp(0.65rem, 3.5vw, 1.65rem);
  left: clamp(0.35rem, 2vw, 0.75rem);
  right: clamp(0.35rem, 2vw, 0.75rem);
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0;
  max-height: 100%;
  padding: clamp(0.3rem, 1.2vw, 0.45rem) clamp(0.35rem, 1.5vw, 0.55rem) clamp(0.25rem, 1vw, 0.4rem);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 35%, rgba(0, 0, 0, 0.42) 100%);
  border-radius: 2px;
}

.collab-tile-head {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.35rem;
}

.collab-tile-label {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: clamp(0.68rem, 2.4vw + 0.2rem, 0.86rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75), 0 1px 3px rgba(0, 0, 0, 0.55);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

.collab-tile-arrow {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: clamp(0.88rem, 2.5vw + 0.35rem, 1.1rem);
  font-weight: 600;
  line-height: 1;
  color: #fff;
  opacity: 0.92;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.collab-tile:hover .collab-tile-arrow,
.collab-tile:focus-within .collab-tile-arrow,
.collab-tile.collab-tile--open .collab-tile-arrow {
  opacity: 0.45;
  transform: translateY(0.12em);
}

.collab-tile-desc {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 1.8vw + 0.15rem, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.96);
  line-height: 1.35;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.78), 0 1px 4px rgba(0, 0, 0, 0.6);
  -webkit-font-smoothing: antialiased;
  transition: opacity 0.35s ease, max-height 0.45s ease, margin 0.35s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media not (prefers-reduced-motion: reduce) {
  .collab-tile-desc {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    margin: 0;
    padding: 0;
  }

  .collab-tile:hover .collab-tile-desc,
  .collab-tile:focus-within .collab-tile-desc,
  .collab-tile.collab-tile--open .collab-tile-desc {
    opacity: 1;
    max-height: min(24rem, 85dvh);
    margin-top: 0.3rem;
    padding-top: 0.1rem;
    overflow: visible;
  }
}

@media (prefers-reduced-motion: reduce) {
  .collab-tile-desc {
    transition: none;
    opacity: 1 !important;
    max-height: none !important;
    overflow: visible !important;
    margin-top: 0.25rem !important;
    padding-top: 0 !important;
  }

  .collab-tile-arrow {
    display: none;
  }
}

@supports (font-size: 1cqi) {
  .collab-tile-label {
    font-size: clamp(0.74rem, 2.8cqi + 0.42rem, 0.9rem);
  }

  .collab-tile-desc {
    font-size: clamp(0.64rem, 2.2cqi + 0.32rem, 0.8rem);
  }
}

@media (min-width: 576px) {
  .collab-tile-copy {
    top: 54%;
  }

  .collab-tile-label {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .collab-tile-desc {
    font-size: 0.7rem;
  }
}

@media (min-width: 992px) {
  .collab-tile-copy {
    top: clamp(52%, 22vw, 62%);
    bottom: 1.35rem;
    left: 0.65rem;
    right: 0.65rem;
    gap: 0;
    padding: 0.45rem 0.55rem 0.4rem;
  }

  .collab-tile-label {
    font-size: 0.86rem;
  }

  .collab-tile-desc {
    font-size: 0.76rem;
    line-height: 1.42;
  }
}

.collab-tile:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.collab-tile-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--reveal-duration) var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .collab-tile:hover .collab-tile-media img {
    transform: scale(1.04);
  }
}

.collab-tile.collab-tile--open .collab-tile-media img {
  transform: scale(1.04);
}

.section-label--sentence {
  text-transform: none;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.section-lead {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--text-soft);
  max-width: 36rem;
  margin-bottom: 2rem;
}

/* ——— Commissions / pricing ——— */
.comm-section {
  background-color: var(--bg-page);
  border-top: 1px solid var(--line);
}

.comm-tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.comm-tier {
  padding: clamp(2.5rem, 5vw, 4.25rem) clamp(1.75rem, 3.5vw, 3.5rem);
  border-left: 1px solid var(--line);
}

.comm-tier:first-child {
  border-left: none;
}

.comm-tier-num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 0.5rem;
}

.comm-rule {
  display: block;
  width: 2.35rem;
  height: 1px;
  background-color: var(--text);
  opacity: 0.28;
  margin: 0.75rem 0;
}

.comm-tier-title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 2.9vw, 2.45rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--text);
  margin: 0 0 0.4rem;
}

.comm-tier-size {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--text-soft);
  margin: 0;
}

.comm-tier-kicker {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin: 0;
}

.comm-tier-price {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--text);
  margin: 0.35rem 0 1.15rem;
}

.comm-tier-price--quote {
  font-size: clamp(1.25rem, 2.1vw, 1.7rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comm-tier-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.62;
  color: var(--text-soft);
  max-width: 19rem;
  margin: 0;
}

.comm-body {
  border-bottom: 1px solid var(--line);
}

.comm-body-row {
  align-items: stretch;
}

.comm-body-row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.comm-included-wrap {
  border-right: 1px solid var(--line);
}

.comm-visual-col {
  min-height: 0;
}

.comm-included {
  padding: clamp(2.5rem, 5vw, 4.25rem) clamp(1.75rem, 3.5vw, 3.5rem);
  max-width: 36rem;
}

.comm-included-label {
  font-family: var(--font-body);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}

.comm-included-list {
  list-style: none;
  padding: 0;
  margin: 1.35rem 0 0;
}

.comm-included-item {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  column-gap: 0.75rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.comm-included-num {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--text-soft);
  padding-top: 0.1rem;
}

.comm-included-name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.3rem;
}

.comm-included-desc {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.58;
  color: var(--text-soft);
  margin: 0;
}

.comm-visual {
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  margin: 0;
  background-color: #e8e6e3;
}

.comm-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.comm-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3rem;
  align-items: start;
  padding: var(--section-space) 0;
}

.comm-foot-note {
  font-family: var(--font-body);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--text-soft);
  max-width: 42rem;
  margin: 0;
  text-align: left;
}

.comm-foot-cta {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 1px solid var(--text);
  padding-bottom: 0.4rem;
  justify-self: end;
  align-self: start;
  transition: opacity var(--duration) var(--ease);
}

.comm-foot-cta:hover {
  opacity: 0.65;
  color: var(--text);
}

@media (max-width: 991.98px) {
  .comm-tiers {
    grid-template-columns: 1fr;
  }

  .comm-tier {
    border-left: none;
    border-top: 1px solid var(--line);
  }

  .comm-tier:first-child {
    border-top: none;
  }

  .comm-included-wrap {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .comm-visual {
    flex: none;
    min-height: 20rem;
    aspect-ratio: 4 / 5;
  }

  .comm-foot {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .comm-foot-cta {
    justify-self: start;
  }
}

/* ——— Contact form (boxed fields) ——— */
.contact-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text);
}

.form-sa .form-label {
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
}

.form-sa .form-control,
.form-sa .form-select {
  font-family: var(--font-body);
  font-size: 0.9rem;
  border: 1px solid rgba(26, 26, 26, 0.08);
  border-radius: 2px;
  background-color: var(--bg-input);
  padding: 0.65rem 0.85rem;
  color: var(--text);
}

.form-sa .form-control:focus,
.form-sa .form-select:focus {
  border-color: rgba(26, 26, 26, 0.35);
  box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.06);
  background-color: var(--white);
}

.form-sa textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.btn-sa {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--white);
  border: none;
  border-radius: 0;
  padding: 0.95rem 2.5rem;
  transition: opacity var(--duration) var(--ease), transform var(--duration);
}

.btn-sa:hover {
  background: var(--text-alt);
  color: var(--white);
  opacity: 0.92;
}

.form-note {
  font-size: 0.75rem;
  color: var(--text-soft);
  margin-top: 1rem;
}

.contact-hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#contact-form-status.is-error {
  color: #8a2b2b;
}

#contact-form-status.is-success {
  color: var(--text);
}

.ig-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.35rem;
  font-size: 0.88rem;
}

.ig-row svg {
  flex-shrink: 0;
  opacity: 0.65;
}

/* ——— Footer ——— */
.footer-line {
  border-top: 1px solid var(--line);
}

.footer-small {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
}

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

/* ——— Works page ——— */
.works-hero {
  min-height: 88vh;
  background-size: cover;
  background-position: center;
  position: relative;
}

.works-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.works-hero .container-fluid {
  position: relative;
  z-index: 1;
}

.works-hero .section-label {
  color: rgba(255, 255, 255, 0.65) !important;
}

.work-block img {
  width: 100%;
  object-fit: cover;
}

.work-block .meta {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--text-soft);
}

.bg-tint {
  background-color: #efede9;
}

/* ——— Reveal ——— */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--reveal-duration) ease,
    transform var(--reveal-duration) var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Hero backgrounds — portrait / mobile (all pages using .hero) */
@media (max-width: 991.98px) {
  .hero {
    min-height: min(88svh, 42rem);
    background-position: center top;
  }

  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.22) 0%,
      rgba(0, 0, 0, 0.08) 32%,
      rgba(0, 0, 0, 0.5) 68%,
      rgba(0, 0, 0, 0.78) 100%
    );
  }

  .hero-inner {
    justify-content: flex-end;
    padding-top: max(5.5rem, 12vh);
    padding-bottom: 4.75rem;
  }
}

/* Portfolio image protection (discourages drag / selection; not absolute security) */
img:not([data-allow-save]),
.protect-image-bg {
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  -webkit-touch-callout: none;
}
