:root {
  --ink: #111318;
  --graphite: #242832;
  --paper: #f4f0e8;
  --white: #fffaf0;
  --cobalt: #6f8234;
  --brand-green: #7f9142;
  --planiphika-green: #b8ce2f;
  --blue-dark: #263414;
  --amber: #e8a72f;
  --sage: #8a9861;
  --line: rgba(17, 19, 24, 0.14);
  --line-light: rgba(255, 250, 240, 0.18);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body.mobile-overlay-open {
  overflow: hidden;
}

body.mobile-project-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.cursor-light {
  position: fixed;
  width: 24rem;
  height: 24rem;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(111, 130, 52, 0.24), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  z-index: 20;
  mix-blend-mode: multiply;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 60;
  background: transparent;
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--cobalt), var(--amber));
}

.social-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 55;
  height: 2.55rem;
  color: rgba(255, 250, 240, 0.78);
  background: linear-gradient(90deg, var(--blue-dark), var(--brand-green));
  border-bottom: 1px solid rgba(255, 250, 240, 0.16);
  transition:
    height 0.35s var(--ease),
    background 0.35s ease;
}

.social-inner {
  width: min(1120px, calc(100% - 2rem));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
}

.compact-brand,
.current-section,
.compact-nav,
.mobile-social-toggle,
.mobile-menu-toggle {
  display: none;
}

.mobile-overlay {
  display: none;
}

.compact-brand {
  width: clamp(8rem, 14vw, 13rem);
  height: 2.9rem;
  align-items: center;
  overflow: hidden;
}

.compact-brand img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.current-section {
  justify-self: center;
  color: var(--planiphika-green);
  font-size: clamp(0.82rem, 1vw, 0.95rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.compact-nav {
  position: relative;
  justify-self: center;
  align-items: center;
  gap: 0.08rem;
  min-height: 2.4rem;
  padding: 0.25rem;
  border: 0;
  background: rgba(255, 250, 240, 0.05);
  isolation: isolate;
}

.compact-nav a {
  position: relative;
  z-index: 1;
  min-height: 1.9rem;
  display: inline-flex;
  align-items: center;
  padding: 0 0.42rem;
  color: rgba(255, 250, 240, 0.72);
  font-size: clamp(0.58rem, 0.72vw, 0.68rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition:
    color 0.25s ease,
    transform 0.25s var(--ease);
}

.compact-nav a:hover,
.compact-nav a.is-active {
  color: var(--ink);
}

.compact-nav a:hover {
  transform: translateY(-1px);
}

.compact-nav-indicator {
  position: absolute;
  z-index: 0;
  left: var(--indicator-x, 0.25rem);
  top: 0.25rem;
  width: var(--indicator-width, 4rem);
  height: calc(100% - 0.5rem);
  background: var(--planiphika-green);
  opacity: var(--indicator-opacity, 0);
  transition:
    left 0.42s var(--ease),
    width 0.42s var(--ease),
    opacity 0.25s ease;
}

.top-location {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.top-location svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.compact-location {
  display: none;
  min-width: 2rem;
  min-height: 2rem;
  justify-content: center;
  align-items: center;
  color: rgba(255, 250, 240, 0.82);
  border: 0;
  background: rgba(255, 250, 240, 0.08);
}

.compact-location svg {
  width: 0.95rem;
  height: 0.95rem;
  fill: currentColor;
}

.social-links a {
  min-width: 2rem;
  min-height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  color: var(--white);
  background: rgba(255, 250, 240, 0.08);
  font-size: 0.68rem;
  transition:
    background 0.2s ease,
    transform 0.2s var(--ease);
}

.social-links svg {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
}

.social-links a:hover {
  background: rgba(255, 250, 240, 0.16);
  transform: translateY(-1px);
}

.social-links .whatsapp-link {
  min-width: auto;
  padding: 0 0.85rem;
  gap: 0.45rem;
  background: #384516;
  border-color: #384516;
  color: var(--white);
  font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.whatsapp-link svg {
  width: 1.05rem;
  height: 1.05rem;
}

.site-header {
  position: fixed;
  top: 2.55rem;
  left: 0;
  right: 0;
  transform: none;
  z-index: 50;
  width: 100%;
  min-height: 5.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem max(1.25rem, calc((100vw - 1120px) / 2));
  color: var(--white);
  border: 0;
  border-bottom: 1px solid rgba(255, 250, 240, 0.2);
  background: rgba(8, 11, 18, 0.48);
  backdrop-filter: blur(18px);
  transition:
    background 0.35s var(--ease),
    border-color 0.35s var(--ease),
    min-height 0.35s var(--ease),
    opacity 0.35s ease,
    transform 0.35s var(--ease),
    visibility 0.35s ease;
}

.site-header.scrolled {
  background: rgba(8, 11, 18, 0.84);
  border-color: rgba(255, 250, 240, 0.32);
  min-height: 5.1rem;
}

body.compact-header .social-bar {
  height: 4.1rem;
  background: rgba(17, 19, 24, 0.94);
  backdrop-filter: blur(18px);
}

body.compact-header .social-inner {
  display: grid;
  grid-template-columns: auto minmax(24rem, 1fr) auto;
  gap: 0.9rem;
}

body.compact-header .compact-brand {
  display: flex;
}

body.compact-header .current-section {
  display: none;
}

body.compact-header .compact-nav {
  display: inline-flex;
}

body.compact-header .top-location {
  display: none;
}

body.compact-header .compact-location {
  display: inline-flex;
}

body.compact-header .site-header {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-1rem);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  width: clamp(16rem, 25vw, 24rem);
  min-width: 0;
}

.brand-logo {
  width: 100%;
  height: 4.35rem;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-nav {
  gap: 0.25rem;
}

.site-nav a {
  min-height: 2.5rem;
  display: grid;
  place-items: center;
  padding: 0 0.85rem;
  color: rgba(255, 250, 240, 0.82);
  transition:
    color 0.25s ease,
    background 0.25s ease;
}

.site-nav a:hover {
  color: var(--white);
  background: rgba(255, 250, 240, 0.1);
}

.nav-toggle {
  width: 2.75rem;
  aspect-ratio: 1;
  display: none;
  place-items: center;
  border: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  position: absolute;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.nav-toggle span:first-child {
  transform: translateY(-4px);
}

.nav-toggle span:last-child {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: rotate(-45deg);
}

section {
  position: relative;
  padding: 7rem max(1.25rem, calc((100vw - 1120px) / 2));
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-light {
  background: var(--white);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem);
  align-items: end;
  gap: 2rem;
  padding-top: 10.5rem;
  padding-bottom: 4rem;
  isolation: isolate;
}

.hero-slideshow,
.hero-media,
.hero-scrim,
.hero-grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-slideshow {
  z-index: -3;
  overflow: hidden;
}

.hero-media {
  object-fit: cover;
  opacity: 0;
  filter: saturate(0.92) contrast(1.08);
  transform: scale(1.04) translate3d(0, 0, 0);
  transition: opacity 1.35s ease;
}

.hero-media.is-active {
  opacity: 1;
  animation: heroDrift 8.5s ease-in-out forwards;
}

.hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(8, 11, 18, 0.9), rgba(8, 11, 18, 0.46) 52%, rgba(8, 11, 18, 0.72)),
    linear-gradient(0deg, rgba(8, 11, 18, 0.92), transparent 44%);
}

.hero-grid {
  z-index: -1;
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 250, 240, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.12) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.hero-content {
  width: min(780px, 100%);
  padding-top: 20vh;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1rem;
  color: var(--planiphika-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  background:
    linear-gradient(currentColor 0 0) left top / 100% 2px no-repeat,
    linear-gradient(currentColor 0 0) left top / 2px 100% no-repeat,
    radial-gradient(circle at 100% 100%, currentColor 0 2px, transparent 2.4px);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 1.25rem;
  font-size: clamp(3.8rem, 7vw, 6.7rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(2.2rem, 4.6vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  font-size: clamp(1.25rem, 1.7vw, 1.65rem);
  line-height: 1.05;
}

p {
  color: rgba(17, 19, 24, 0.72);
  line-height: 1.65;
}

.section-dark p,
.section-dark .hero-copy {
  color: rgba(255, 250, 240, 0.76);
}

.hero-copy {
  max-width: 42rem;
  font-size: 1.12rem;
}

.visual-note {
  display: inline-block;
  margin-top: 1.1rem;
  color: rgba(255, 250, 240, 0.78);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  min-height: 3.2rem;
  display: inline-grid;
  place-items: center;
  padding: 0 1.2rem;
  border: 0;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    background 0.25s ease,
    color 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--planiphika-green);
  color: var(--ink);
  font-weight: 800;
}

.hero .eyebrow,
.hero .eyebrow::before {
  color: var(--planiphika-green);
}

.hero .button.primary {
  background: var(--planiphika-green);
}

.button.ghost {
  color: var(--white);
  background: rgba(255, 250, 240, 0.12);
}

.hero-panel {
  align-self: end;
  padding: 1.3rem;
  border: 1px solid var(--line-light);
  background: rgba(255, 250, 240, 0.1);
  backdrop-filter: blur(14px);
}

.hero-panel span {
  display: block;
  margin-bottom: 3rem;
  color: rgba(255, 250, 240, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-panel strong {
  display: block;
  font-size: 1.65rem;
  line-height: 1;
}

.signal-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
  margin-top: 1.4rem;
}

.signal-row i {
  height: 0.5rem;
  background: var(--amber);
  transform-origin: left;
  animation: signal 1.7s ease-in-out infinite alternate;
}

.signal-row i:nth-child(2) {
  animation-delay: 0.2s;
  background: var(--white);
}

.signal-row i:nth-child(3) {
  animation-delay: 0.4s;
  background: var(--cobalt);
}

.intro {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
  background:
    linear-gradient(90deg, rgba(111, 130, 52, 0.12), transparent 44%),
    var(--paper);
}

.intro::after,
.services::after,
.blueprint::after {
  content: "";
  position: absolute;
  left: max(1.25rem, calc((100vw - 1120px) / 2));
  right: max(1.25rem, calc((100vw - 1120px) / 2));
  bottom: 0;
  height: 0.45rem;
  background: linear-gradient(90deg, var(--brand-green), transparent);
}

.intro-copy h2 {
  max-width: 880px;
  margin-bottom: 1.5rem;
}

.intro-copy p {
  max-width: 650px;
  font-size: 1.08rem;
}

.stats {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.stats article {
  min-height: 12rem;
  padding: 1.4rem;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stats strong {
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.85;
}

.stats span {
  max-width: 11rem;
  color: rgba(17, 19, 24, 0.66);
}

.section-heading {
  display: grid;
  grid-template-columns: 11rem minmax(0, 780px);
  gap: 2rem;
  margin-bottom: 3rem;
}

@media (min-width: 761px) {
  #casos .section-heading {
    grid-template-columns: 11rem minmax(0, 1fr);
  }

  #casos .section-heading h2 {
    font-size: clamp(1.9rem, 2.9vw, 2.8rem);
    white-space: nowrap;
  }
}

.cases-brand-word {
  color: var(--planiphika-green);
}

.case-overview-button {
  align-self: start;
  width: fit-content;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease;
}

.case-overview-button:hover,
.case-overview-button:focus-visible {
  color: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.service-card {
  min-height: 24rem;
  padding: 1.25rem;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition:
    transform 0.35s var(--ease),
    background 0.35s ease,
    color 0.35s ease;
}

.service-card h3 {
  max-width: 10ch;
}

.service-card:hover {
  transform: translateY(-0.7rem);
  background: var(--cobalt);
  color: var(--white);
}

.service-card:hover p {
  color: rgba(255, 250, 240, 0.74);
}

.icon {
  width: 3.2rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  color: var(--planiphika-green);
  font-weight: 900;
}

.service-card:hover .icon {
  color: var(--white);
}

.dro-band {
  width: min(940px, 100%);
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid rgba(17, 19, 24, 0.18);
  background:
    linear-gradient(90deg, rgba(184, 206, 47, 0.12), transparent 42%),
    rgba(255, 250, 240, 0.72);
}

.dro-icon {
  width: 3rem;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: rgba(184, 206, 47, 0.14);
  color: var(--planiphika-green);
}

.dro-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: currentColor;
}

.dro-band p {
  margin: 0;
  color: rgba(17, 19, 24, 0.78);
  font-size: clamp(0.92rem, 1.15vw, 1.02rem);
  line-height: 1.55;
}

.dro-band strong {
  color: var(--ink);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.media-suite {
  overflow: clip;
}

.media-suite::before,
.gallery::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 3rem 3rem;
  pointer-events: none;
}

.media-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(18rem, 0.6fr);
  gap: 1px;
  border: 1px solid var(--line-light);
  background: var(--line-light);
}

.media-feature {
  min-height: 0;
  aspect-ratio: 8 / 5;
  position: relative;
  display: block;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--graphite);
  color: var(--white);
}

.media-feature::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 250, 240, 0.18);
  background:
    linear-gradient(120deg, transparent 20%, rgba(255, 250, 240, 0.12), transparent 42%),
    linear-gradient(0deg, rgba(8, 11, 18, 0.65), transparent 48%);
  background-size: 240% 100%, 100% 100%;
  opacity: 0;
  transition:
    opacity 0.35s ease,
    background-position 0.85s var(--ease);
  pointer-events: none;
}

.media-feature img,
.mini-reels img,
.transform-card img,
.blueprint-board img,
.gallery-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-feature img {
  filter: saturate(0.9) contrast(1.08);
  opacity: 1;
  transform: scale(1);
  transition:
    filter 0.45s ease,
    opacity 0.26s ease,
    transform 0.65s var(--ease);
}

.media-visual-note {
  position: absolute;
  z-index: 1;
  right: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: 0.4rem 0.55rem;
  background: rgba(17, 19, 24, 0.78);
}

.media-hero.is-changing .media-feature img {
  opacity: 0.12;
  transform: scale(1.035);
}

.media-copy > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.22s ease,
    transform 0.38s var(--ease);
}

.media-hero.is-changing .media-copy > * {
  opacity: 0;
  transform: translateY(0.7rem);
}

.play-badge {
  position: absolute;
  left: 1.2rem;
  bottom: 1.2rem;
  min-height: 3.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 900;
}

.play-badge::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 0.42rem solid transparent;
  border-bottom: 0.42rem solid transparent;
  border-left: 0.68rem solid currentColor;
}

.media-copy {
  min-width: 0;
  padding: clamp(1.15rem, 2vw, 1.75rem);
  overflow: hidden;
  background: rgba(255, 250, 240, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.media-copy span,
.transform-card span,
.gallery-strip figcaption {
  color: var(--planiphika-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.media-copy h3 {
  max-width: 16ch;
  margin: 0.8rem 0;
  overflow-wrap: anywhere;
  font-size: clamp(1.65rem, 2.5vw, 2.55rem);
  line-height: 1.03;
  text-wrap: balance;
}

.media-copy p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(0.9rem, 0.95vw, 1rem);
  line-height: 1.55;
}

.mini-reels {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 1rem;
  background: var(--line-light);
  border: 1px solid var(--line-light);
}

.mini-reels button {
  position: relative;
  min-height: 15rem;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: var(--graphite);
  color: var(--white);
  cursor: pointer;
}

.mini-reels button::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 2px solid transparent;
  pointer-events: none;
  transition:
    border-color 0.25s ease,
    background 0.25s ease;
}

.mini-reels img {
  opacity: 0.62;
  transition:
    opacity 0.3s ease,
    transform 0.6s var(--ease);
}

.mini-reels button:hover img,
.mini-reels button:focus-visible img,
.mini-reels button.is-active img {
  opacity: 0.9;
  transform: scale(1.08);
}

.mini-reels button.is-active::after {
  border-color: var(--planiphika-green);
  background: linear-gradient(135deg, rgba(184, 206, 47, 0.16), transparent 48%);
}

.mini-reels button:focus-visible {
  outline: 2px solid var(--planiphika-green);
  outline-offset: 3px;
}

.mini-reels span {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  overflow-wrap: anywhere;
  font-size: clamp(0.88rem, 1.15vw, 1.05rem);
  font-weight: 900;
  line-height: 1.08;
  text-align: left;
  text-wrap: balance;
  transition: color 0.25s ease;
}

.mini-reels button.is-active span {
  color: var(--planiphika-green);
}

@media (min-width: 901px) and (max-width: 1150px) {
  .media-hero {
    grid-template-columns: minmax(0, 1.15fr) minmax(19rem, 0.85fr);
  }

  .mini-reels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mini-reels button {
    min-height: 12rem;
  }
}

.transforms {
  overflow: clip;
}

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

.transform-disclaimer {
  max-width: 48rem;
  margin: -0.5rem 0 1.5rem;
  font-size: 0.82rem;
}

.transform-card {
  min-height: 34rem;
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.transform-card img {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  filter: grayscale(0.22);
  transition: transform 0.7s var(--ease);
}

.transform-card:hover img {
  transform: scale(1.08);
}

.transform-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(8, 11, 18, 0.88), transparent 58%);
}

.transform-card span,
.transform-card h3 {
  position: absolute;
  z-index: 1;
  left: 1.2rem;
  right: 1.2rem;
}

.transform-card span {
  bottom: 9.4rem;
}

.transform-card h3 {
  bottom: 1rem;
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.35rem, 1.8vw, 2rem);
  line-height: 1.08;
}

.method {
  display: grid;
  grid-template-columns: minmax(18rem, 0.8fr) minmax(0, 1fr);
  gap: 4rem;
  overflow: clip;
}

.method::before {
  content: "";
  position: absolute;
  width: 42rem;
  height: 42rem;
  right: -12rem;
  top: 8rem;
  background:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 2.2rem 2.2rem;
  transform: rotate(-8deg);
  opacity: 0.45;
}

.method-sticky {
  position: sticky;
  top: 8rem;
  align-self: start;
}

.timeline {
  display: grid;
  gap: 1rem;
}

.timeline-item {
  min-height: 14rem;
  padding: 1.25rem;
  border: 1px solid var(--line-light);
  background: rgba(255, 250, 240, 0.06);
  transform: translateX(calc(var(--offset, 0) * 1rem));
}

.timeline-item h3 {
  max-width: 34rem;
}

.timeline-item:nth-child(2) {
  --offset: 1;
}

.timeline-item:nth-child(3) {
  --offset: 2;
}

.timeline-item:nth-child(4) {
  --offset: 3;
}

.blueprint {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(20rem, 1.25fr);
  gap: 3rem;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(127, 145, 66, 0.18), transparent 38%),
    var(--white);
}

.blueprint-copy p {
  max-width: 34rem;
}

.blueprint-board {
  min-height: 38rem;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.blueprint-board img {
  position: absolute;
  inset: 0;
  opacity: 0.52;
  filter: grayscale(0.2) contrast(1.1);
}

.blueprint-board::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 250, 240, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.18) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
  z-index: 1;
}

.pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  width: 1.2rem;
  aspect-ratio: 1;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--amber);
  color: var(--white);
  cursor: pointer;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 0 rgba(232, 167, 47, 0.48);
  animation: pulse 1.8s ease-out infinite;
}

.pin span {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  width: max-content;
  max-width: 12rem;
  padding: 0.55rem 0.7rem;
  background: rgba(17, 19, 24, 0.86);
  color: var(--white);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.pin:hover span,
.pin.active span {
  opacity: 1;
}

.pin-readout {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
  max-width: calc(100% - 2rem);
  padding: 1rem;
  background: var(--white);
  color: var(--ink);
  font-size: clamp(1.3rem, 2.4vw, 2.25rem);
  font-weight: 900;
  line-height: 0.95;
}

.timeline-item span,
.case-card span {
  display: block;
  margin-bottom: 1.6rem;
  color: var(--planiphika-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.cases {
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.cases::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(var(--line-light) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-light) 1px, transparent 1px);
  background-size: 3rem 3rem;
  pointer-events: none;
}

.case-portfolio {
  display: grid;
  gap: 1rem;
  transition: grid-template-columns 0.55s var(--ease);
}

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

.case-sidebar,
.case-carousel,
.case-carousel-viewport {
  display: contents;
}

.case-carousel-control {
  display: none;
}

.case-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.case-grid-single .case-card {
  min-height: 38rem;
}

.case-grid-single .case-card h3 {
  max-width: none;
  font-size: clamp(3rem, 5.8vw, 5.6rem);
}

.case-grid-single .case-card p {
  max-width: 46rem;
}

.cases.has-project .case-portfolio {
  grid-template-columns: minmax(0, 0.35fr) minmax(0, 0.65fr);
  align-items: start;
}

.cases.has-project .case-sidebar {
  position: sticky;
  top: 5.2rem;
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 1.15rem;
  grid-column: 1;
}

.project-gallery-head {
  display: none;
}

.cases.has-project .project-gallery-head {
  display: grid;
  justify-items: end;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: right;
}

.cases.has-project .case-carousel {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.cases.has-project .case-carousel-viewport {
  display: block;
  min-height: 0;
  height: min(28rem, 52vh);
  overflow-x: hidden;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  mask-image: linear-gradient(to bottom, #000 0%, #000 94%, transparent 100%);
}

.cases.has-project .case-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.cases.has-project .case-grid {
  position: static;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

.cases.has-project .case-grid.is-reordering .case-card {
  pointer-events: none;
}

.cases.has-project .case-carousel-control {
  position: relative;
  width: 100%;
  height: 2.6rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184, 206, 47, 0.38);
  border-radius: 0;
  background: rgba(255, 250, 240, 0.035);
  color: var(--planiphika-green);
  cursor: pointer;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

.cases.has-project .case-carousel-control::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
}

.cases.has-project .case-carousel-prev::before {
  transform: translateY(0.16rem) rotate(-135deg);
}

.cases.has-project .case-carousel-next::before {
  transform: translateY(-0.16rem) rotate(45deg);
}

.cases.has-project .case-carousel-control:hover,
.cases.has-project .case-carousel-control:focus-visible {
  border-color: var(--planiphika-green);
  background: var(--planiphika-green);
  color: var(--ink);
  outline: none;
}

.case-card {
  min-height: 34rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  overflow: hidden;
  background: var(--ink);
  border: 1px solid rgba(17, 19, 24, 0.18);
  color: var(--white);
  cursor: pointer;
  transition:
    opacity 0.25s ease,
    transform 0.35s var(--ease),
    filter 0.35s ease;
}

.case-card h3 {
  position: relative;
  z-index: 1;
  max-width: 16ch;
  margin: 0 0 1rem;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 0.98;
}

.case-card:hover,
.case-card:focus-visible,
.case-card.is-active {
  transform: translateY(-0.45rem);
}

.case-card:focus-visible {
  outline: 2px solid var(--planiphika-green);
  outline-offset: 4px;
}

.case-card.is-hidden {
  display: none;
}

.cases.has-project .case-card {
  min-height: 8.7rem;
  padding: 1rem;
  animation: portfolioCardIn 0.55s var(--ease) both;
}

.cases.has-project .case-card:nth-child(2) {
  animation-delay: 0.08s;
}

.cases.has-project .case-card:nth-child(3) {
  animation-delay: 0.16s;
}

.cases.has-project .case-card.is-active {
  display: flex;
  border-color: rgba(184, 206, 47, 0.72);
}

.cases.has-project .case-card:not(.is-active) .case-visual img {
  opacity: 0.64;
  filter: grayscale(1) contrast(1.14);
}

.cases.has-project .case-card:not(.is-active):hover .case-visual img {
  opacity: 0.88;
  filter: grayscale(0.12) contrast(1.08);
}

.cases.has-project .case-card h3 {
  max-width: 16ch;
  margin-bottom: 0;
  font-size: clamp(1.05rem, 1.28vw, 1.45rem);
  line-height: 1.02;
}

.cases.has-project .case-card p {
  display: none;
}

.cases.has-project .case-card span {
  margin-bottom: 0.55rem;
  font-size: 0.68rem;
}

.case-visual {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--graphite);
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
  filter: saturate(0.86) contrast(1.08);
  transition:
    opacity 0.35s ease,
    transform 0.7s var(--ease),
    filter 0.35s ease;
}

.case-card:hover .case-visual img,
.case-card.is-active .case-visual img {
  opacity: 0.9;
  filter: saturate(1) contrast(1.12);
  transform: scale(1.06);
}

.case-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(8, 11, 18, 0.92), rgba(8, 11, 18, 0.32) 58%, rgba(8, 11, 18, 0.18)),
    linear-gradient(90deg, rgba(184, 206, 47, 0.22), transparent 36%);
}

.case-card span,
.case-card h3,
.case-card p {
  position: relative;
  z-index: 1;
}

.case-card span {
  margin-bottom: 1.1rem;
}

.case-card p {
  max-width: 31rem;
  margin: 0;
  color: rgba(255, 250, 240, 0.78);
  font-size: clamp(0.95rem, 1vw, 1.02rem);
  line-height: 1.62;
}

.project-gallery {
  display: none;
  min-width: 0;
}

.project-gallery.open {
  display: grid;
  gap: 1rem;
  grid-column: 2;
  grid-row: 1;
  animation: projectGalleryIn 0.7s var(--ease) both;
}

.project-gallery.is-changing {
  animation: projectGalleryOut 0.26s ease both;
}

.project-gallery-head.is-changing {
  animation: projectSummaryOut 0.22s ease both;
}

.cases.has-project .project-gallery-head:not(.is-changing) {
  animation: projectSummaryIn 0.58s var(--ease) both;
}

.project-gallery-head span {
  color: var(--planiphika-green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-gallery-head h3 {
  margin: 0;
  max-width: 100%;
  overflow-wrap: normal;
  font-size: clamp(1.7rem, 2.15vw, 2.45rem);
  line-height: 1;
}

.project-gallery-head p {
  max-width: 100%;
  margin: 0;
  color: rgba(255, 250, 240, 0.74);
  font-size: clamp(0.92rem, 1vw, 1rem);
  line-height: 1.65;
}

.project-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 19rem;
  gap: 1rem;
}

.project-gallery-grid figure {
  position: relative;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  background: var(--graphite);
  cursor: zoom-in;
  opacity: 0;
  transform: translateY(1.3rem) scale(0.98);
  animation: galleryFigureIn 0.62s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 75ms + 120ms);
}

.project-gallery-grid figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(35deg, rgba(8, 11, 18, 0.9), rgba(8, 11, 18, 0.62) 42%, transparent 43%),
    linear-gradient(0deg, rgba(8, 11, 18, 0.38), transparent 58%);
  clip-path: polygon(0 100%, 0 0, 100% 0);
  pointer-events: none;
}

.project-gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.08);
  transition: transform 0.7s var(--ease);
}

.project-gallery-grid figure:hover img {
  transform: scale(1.06);
}

.project-gallery-grid figure:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.project-gallery-grid figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-gallery-more {
  position: relative;
  min-height: 0;
  display: grid;
  align-content: end;
  justify-items: start;
  gap: 0.45rem;
  padding: 1.4rem;
  border: 1px solid rgba(184, 206, 47, 0.42);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(184, 206, 47, 0.16), transparent 52%),
    repeating-linear-gradient(0deg, transparent 0 2.9rem, rgba(255, 250, 240, 0.055) 3rem),
    repeating-linear-gradient(90deg, transparent 0 2.9rem, rgba(255, 250, 240, 0.055) 3rem),
    rgba(255, 250, 240, 0.045);
  color: var(--white);
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(1.3rem) scale(0.98);
  animation: galleryFigureIn 0.62s var(--ease) 0.72s both;
  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    transform 0.3s var(--ease);
}

.project-gallery-more::after {
  content: "+";
  position: absolute;
  right: 1.25rem;
  top: 1.1rem;
  color: var(--planiphika-green);
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
}

.project-gallery-more:hover,
.project-gallery-more:focus-visible {
  border-color: var(--planiphika-green);
  background-color: rgba(184, 206, 47, 0.08);
  transform: translateY(-0.25rem);
}

.project-gallery-more span {
  color: var(--planiphika-green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-gallery-more strong {
  max-width: 12ch;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
}

.mobile-project-modal {
  display: none;
}

.gallery {
  overflow: hidden;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(16rem, 1fr));
  gap: 1rem;
}

.gallery-strip figure {
  position: relative;
  min-height: 24rem;
  margin: 0;
  overflow: hidden;
  background: var(--graphite);
}

.gallery-strip img {
  opacity: 0.72;
  transition: transform 0.7s var(--ease);
}

.gallery-strip figure:hover img {
  transform: scale(1.08);
}

.gallery-strip figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: var(--white);
}

.blog-preview {
  background:
    linear-gradient(120deg, rgba(184, 206, 47, 0.1), transparent 36%),
    var(--white);
}

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

.blog-card {
  min-height: 34rem;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s ease;
}

.blog-card:hover {
  transform: translateY(-0.45rem);
  border-color: rgba(184, 206, 47, 0.8);
}

.blog-card img {
  width: 100%;
  height: 15rem;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}

.blog-card div {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.15rem;
}

.blog-card span {
  color: var(--planiphika-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.blog-card h3 {
  margin: 1rem 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.05;
}

.blog-card p {
  margin-bottom: 1.2rem;
}

.blog-card .blog-open {
  width: max-content;
  margin-top: auto;
  min-height: 2.8rem;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 0.95rem 0 1rem;
  border: 0;
  background: rgba(17, 19, 24, 0.08);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--ease);
}

.blog-card .blog-open::after {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s var(--ease);
}

.blog-card .blog-open:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-0.12rem);
}

.blog-card .blog-open:hover::after {
  transform: translateX(0.18rem) rotate(45deg);
}

body.article-open {
  overflow: hidden;
}

.article-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0s linear 0.3s;
}

.article-modal.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.article-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 250, 240, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 250, 240, 0.045) 1px, transparent 1px),
    rgba(8, 11, 18, 0.94);
  background-size: 3rem 3rem, 3rem 3rem, auto;
  backdrop-filter: blur(8px);
}

.article-modal-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  height: min(860px, calc(100dvh - 3rem));
  display: grid;
  grid-template-columns: minmax(0, 35%) minmax(0, 65%);
  overflow: hidden;
  background: var(--paper);
  border: 1px solid rgba(255, 250, 240, 0.24);
  box-shadow: 0 2rem 6rem rgba(0, 0, 0, 0.42);
  transform: translateY(1.5rem) scale(0.985);
  transition: transform 0.5s var(--ease);
}

.article-modal.open .article-modal-shell {
  transform: translateY(0) scale(1);
}

.article-progress {
  position: absolute;
  z-index: 5;
  top: 0;
  left: 35%;
  right: 0;
  height: 3px;
  background: rgba(17, 19, 24, 0.08);
}

.article-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--planiphika-green);
  transition: width 0.1s linear;
}

.article-close {
  position: absolute;
  z-index: 6;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid rgba(17, 19, 24, 0.16);
  background: rgba(244, 240, 232, 0.92);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--ease);
}

.article-close:hover {
  background: var(--ink);
  color: var(--white);
  transform: rotate(90deg);
}

.article-close::before,
.article-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.15rem;
  height: 2px;
  background: currentColor;
}

.article-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.article-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.article-visual {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--ink);
}

.article-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.78) contrast(1.08);
  transform: scale(1.035);
  transition: transform 0.9s var(--ease);
}

.article-modal.open .article-visual img {
  transform: scale(1);
}

.article-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(145deg, transparent 30%, rgba(8, 11, 18, 0.2) 56%, rgba(8, 11, 18, 0.9) 100%),
    linear-gradient(0deg, rgba(8, 11, 18, 0.72), transparent 45%);
}

.article-visual-meta {
  position: absolute;
  left: 1.6rem;
  right: 1.6rem;
  bottom: 1.6rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  color: var(--white);
}

.article-visual-meta span {
  color: var(--planiphika-green);
  font-family: Montserrat, sans-serif;
  font-size: 4.2rem;
  font-weight: 900;
  line-height: 0.8;
}

.article-visual-meta strong {
  font-size: 0.72rem;
  line-height: 1.25;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-reader {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--planiphika-green) transparent;
}

.article-header,
.article-content {
  width: min(42rem, calc(100% - 5rem));
  margin-inline: auto;
}

.article-header {
  padding: 4.5rem 0 3rem;
  border-bottom: 1px solid var(--line);
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
  color: var(--planiphika-green);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.article-meta span:last-child {
  color: rgba(17, 19, 24, 0.52);
}

.article-header h2 {
  max-width: 13ch;
  margin: 0;
  font-size: 3rem;
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.article-lead {
  max-width: 54ch;
  margin: 1.7rem 0 0;
  color: rgba(17, 19, 24, 0.74);
  font-size: 1.08rem;
  line-height: 1.7;
}

.article-content {
  padding: 2.75rem 0 5rem;
}

.article-content > p {
  margin: 0 0 1.35rem;
  color: rgba(17, 19, 24, 0.78);
  font-size: 1rem;
  line-height: 1.75;
}

.article-section {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: 1.1rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--line);
}

.article-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.article-section-number {
  color: var(--planiphika-green);
  font-family: Montserrat, sans-serif;
  font-size: 0.76rem;
  font-weight: 900;
}

.article-section-copy {
  min-width: 0;
}

.article-section h3 {
  margin: -0.25rem 0 0.85rem;
  font-size: 1.5rem;
  line-height: 1.1;
  text-wrap: balance;
}

.article-section p,
.article-section li {
  color: rgba(17, 19, 24, 0.76);
  line-height: 1.72;
}

.article-section p {
  margin: 0;
}

.article-section ul,
.article-section ol {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.article-section li {
  position: relative;
  padding: 0.75rem 0 0.75rem 1.35rem;
  border-top: 1px solid rgba(17, 19, 24, 0.1);
}

.article-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.3rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--planiphika-green);
}

.article-principle {
  margin: 0.5rem 0 2.75rem;
  padding: 1.5rem;
  background: var(--white);
  color: var(--ink);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-left: 4px solid var(--planiphika-green);
}

.article-principle strong {
  display: block;
  margin-bottom: 0.65rem;
  color: var(--planiphika-green);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-principle p {
  margin: 0;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 750;
  line-height: 1.45;
}

.article-cta {
  margin-top: 1rem;
  padding: 2rem;
  background: rgba(184, 206, 47, 0.17);
  border-top: 1px solid rgba(127, 145, 66, 0.35);
}

.article-cta span {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--brand-green);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.article-cta h3 {
  margin: 0 0 0.65rem;
  font-size: 1.65rem;
  line-height: 1.08;
}

.article-cta p {
  margin: 0 0 1.25rem;
  color: rgba(17, 19, 24, 0.72);
  line-height: 1.6;
}

.article-cta a {
  min-height: 2.9rem;
  display: inline-flex;
  align-items: center;
  padding: 0 1.1rem;
  background: var(--ink);
  color: var(--white);
  font-weight: 850;
}

@media (max-width: 760px) {
  .article-modal {
    padding: 0;
  }

  .article-modal-shell {
    width: 100%;
    height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: 13rem minmax(0, 1fr);
    border: 0;
  }

  .article-progress {
    position: fixed;
    left: 0;
  }

  .article-close {
    position: fixed;
    top: max(0.8rem, env(safe-area-inset-top));
    right: 0.8rem;
    background: var(--white);
  }

  .article-visual-meta {
    left: 1.1rem;
    right: 4.6rem;
    bottom: 1rem;
  }

  .article-visual-meta span {
    font-size: 3.1rem;
  }

  .article-reader {
    background: var(--paper);
  }

  .article-header,
  .article-content {
    width: calc(100% - 2.5rem);
  }

  .article-header {
    padding: 2rem 0 2.2rem;
  }

  .article-meta {
    align-items: flex-start;
    padding-right: 0;
    font-size: 0.66rem;
  }

  .article-header h2 {
    max-width: none;
    font-size: 2rem;
    line-height: 1.02;
  }

  .article-lead {
    margin-top: 1.15rem;
    font-size: 0.98rem;
    line-height: 1.6;
  }

  .article-content {
    padding: 2rem 0 4rem;
  }

  .article-section {
    grid-template-columns: 1.9rem minmax(0, 1fr);
    gap: 0.75rem;
    padding: 1.8rem 0;
  }

  .article-section h3 {
    font-size: 1.3rem;
  }

  .article-principle,
  .article-cta {
    padding: 1.3rem;
  }
}

.lab-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 8rem;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.swatch,
.motion-card {
  min-width: 0;
}

.swatch.cobalt {
  background: var(--cobalt);
}

.swatch.stone {
  background: var(--paper);
}

.swatch.amber {
  background: var(--amber);
}

.swatch.ink {
  background: var(--ink);
}

.motion-card {
  grid-column: span 4;
  min-height: 16rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
}

.motion-card span {
  background:
    linear-gradient(90deg, transparent, rgba(255, 250, 240, 0.32), transparent),
    var(--cobalt);
  background-size: 220% 100%;
  animation: shimmer 2.4s linear infinite;
}

.motion-card span:nth-child(2) {
  animation-delay: 0.3s;
  background-color: var(--graphite);
}

.motion-card span:nth-child(3) {
  animation-delay: 0.6s;
  background-color: var(--amber);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1fr);
  gap: 4rem;
}

.contact-direct {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border: 1px solid var(--line-light);
  background: var(--line-light);
}

.contact-card,
.contact-socials,
.map-card {
  background: rgba(255, 250, 240, 0.08);
}

.contact-card {
  min-height: 16rem;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card span {
  color: var(--planiphika-green);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contact-card h3 {
  max-width: 11ch;
  margin: 1rem 0;
  font-size: clamp(1.6rem, 2.5vw, 2.7rem);
}

.contact-card p {
  margin-bottom: 0.65rem;
}

.contact-whatsapp {
  background:
    linear-gradient(135deg, rgba(184, 206, 47, 0.18), transparent 62%),
    rgba(255, 250, 240, 0.08);
}

.contact-socials {
  min-height: 8rem;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-column: span 2;
  gap: 1px;
  background: var(--line-light);
}

.contact-socials a {
  display: grid;
  place-items: center;
  background: rgba(255, 250, 240, 0.08);
  color: var(--white);
  transition:
    background 0.25s ease,
    color 0.25s ease;
}

.contact-socials a:hover {
  background: var(--planiphika-green);
  color: var(--ink);
}

.contact-socials svg {
  width: 1.65rem;
  height: 1.65rem;
  fill: currentColor;
}

.map-card {
  min-height: 18rem;
  grid-column: span 2;
  overflow: hidden;
}

.map-card iframe {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  border: 0;
  filter: grayscale(0.35) contrast(1.05);
}

.media-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(8, 11, 18, 0.88);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.media-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.media-modal-frame {
  width: min(1180px, calc(100vw - 8rem));
  height: min(78vh, 760px);
  border: 1px solid var(--line-light);
  background: var(--ink);
  overflow: hidden;
}

.media-modal-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.media-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 3rem;
  aspect-ratio: 1;
  border: 1px solid var(--line-light);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.media-close::before,
.media-close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
}

.media-close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.media-close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.media-arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  width: 3.5rem;
  aspect-ratio: 1;
  display: none;
  place-items: center;
  border: 1px solid var(--line-light);
  background: rgba(255, 250, 240, 0.92);
  color: var(--ink);
  cursor: pointer;
  transform: translateY(-50%);
}

.media-modal.has-carousel .media-arrow {
  display: grid;
}

.media-arrow-prev {
  left: 1rem;
}

.media-arrow-next {
  right: 1rem;
}

.media-arrow::before {
  content: "";
  width: 0.8rem;
  height: 0.8rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
}

.media-arrow-prev::before {
  transform: rotate(-135deg);
}

.media-arrow-next::before {
  transform: rotate(45deg);
}

.site-footer {
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem max(1.25rem, calc((100vw - 1120px) / 2));
  background: var(--ink);
  color: rgba(255, 250, 240, 0.7);
  border-top: 1px solid var(--line-light);
}

.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@keyframes heroDrift {
  to {
    transform: var(--hero-motion, scale(1.1) translate3d(1.4rem, -1rem, 0));
  }
}

@keyframes signal {
  from {
    transform: scaleX(0.28);
    opacity: 0.55;
  }
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes scan {
  to {
    transform: translate(-2rem, -1rem) scale(1.08);
  }
}

@keyframes shimmer {
  to {
    background-position: -220% 0;
  }
}

@keyframes pulse {
  to {
    box-shadow: 0 0 0 1.1rem rgba(232, 167, 47, 0);
  }
}

@keyframes portfolioCardIn {
  from {
    opacity: 0;
    transform: translateY(1rem);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes projectSummaryIn {
  from {
    opacity: 0;
    transform: translateX(-1.1rem);
    filter: blur(5px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes projectSummaryOut {
  to {
    opacity: 0;
    transform: translateX(-0.8rem);
    filter: blur(5px);
  }
}

@keyframes projectGalleryIn {
  from {
    opacity: 0;
    transform: translateX(1.4rem);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes projectGalleryOut {
  to {
    opacity: 0;
    transform: translateX(1rem);
  }
}

@keyframes galleryFigureIn {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes sectionSpin {
  from {
    opacity: 0;
    transform: rotateX(82deg) translateY(0.45rem);
  }
  to {
    opacity: 1;
    transform: rotateX(0) translateY(0);
  }
}

@media (max-width: 900px) {
  .cursor-light {
    display: none;
  }

  .social-inner {
    justify-content: flex-end;
  }

  .social-inner > span {
    display: none;
  }

  body.compact-header .social-inner {
    justify-content: space-between;
  }

  body.compact-header .current-section {
    display: inline-flex;
  }

  .nav-toggle {
    display: grid;
  }

  .site-nav {
    position: fixed;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: grid;
    padding: 0.6rem;
    border: 1px solid rgba(255, 250, 240, 0.22);
    background: rgba(8, 11, 18, 0.96);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.25s ease,
      transform 0.25s var(--ease);
  }

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

  .site-nav a {
    justify-content: start;
    min-height: 3.2rem;
  }

  .hero,
  .intro,
  .section-heading,
  .media-hero,
  .method,
  .blueprint,
  .blog-grid,
  .contact,
  .contact-direct {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 980px;
  }

  .hero-content {
    padding-top: 12rem;
  }

  .hero-panel {
    max-width: 28rem;
  }

  h1 {
    font-size: clamp(3.4rem, 15vw, 5.6rem);
  }

  .stats,
  .section-heading {
    grid-column: auto;
  }

  .stats,
  .service-grid,
  .mini-reels,
  .transform-grid,
  .case-grid,
  .blog-grid,
  .cases.has-project .case-portfolio,
  .project-gallery-head,
  .project-gallery-grid {
    grid-template-columns: 1fr;
  }

  .cases.has-project .case-grid {
    position: relative;
    top: auto;
  }

  .project-gallery-grid figure:first-child {
    grid-row: auto;
  }

  .service-card {
    min-height: 17rem;
  }

  .method-sticky {
    position: relative;
    top: auto;
  }

  .timeline-item {
    transform: none;
  }

  .media-feature,
  .blueprint-board {
    min-height: 28rem;
  }

  .gallery-strip {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 1rem;
  }

  .gallery-strip figure {
    min-width: 75vw;
    scroll-snap-align: start;
  }

  .map-card {
    grid-column: auto;
  }
}

@media (max-width: 560px), (max-height: 560px) {
  section {
    padding-top: 5rem;
    padding-bottom: 5rem;
  }

  .social-bar,
  body.compact-header .social-bar {
    height: 3.8rem;
    background: rgba(17, 19, 24, 0.96);
    backdrop-filter: blur(18px);
  }

  .social-inner,
  body.compact-header .social-inner {
    width: calc(100% - 0.85rem);
    display: grid;
    grid-template-columns: 2.65rem minmax(6.8rem, 9.4rem) minmax(0, 1fr) 2.65rem;
    align-items: center;
    gap: 0.35rem;
    justify-content: stretch;
  }

  .mobile-social-toggle,
  .mobile-menu-toggle {
    width: 2.65rem;
    height: 2.65rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 250, 240, 0.18);
    background: rgba(255, 250, 240, 0.08);
    color: var(--white);
    padding: 0;
  }

  .mobile-social-toggle svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
  }

  .mobile-menu-toggle {
    position: relative;
  }

  .mobile-menu-toggle span {
    position: absolute;
    width: 1.15rem;
    height: 2px;
    background: currentColor;
  }

  .mobile-menu-toggle span:first-child {
    transform: translateY(-4px);
  }

  .mobile-menu-toggle span:last-child {
    transform: translateY(4px);
  }

  .site-header,
  body.compact-header .site-header {
    display: none;
  }

  .site-header {
    top: 2.55rem;
    width: 100%;
    min-height: 4.9rem;
    padding-inline: 0.75rem;
  }

  .brand {
    width: min(16rem, calc(100vw - 6rem));
  }

  .brand-logo {
    height: 3.6rem;
  }

  .social-inner > .top-location,
  .social-inner > .compact-nav,
  .social-links,
  body.compact-header .social-links,
  body.compact-header .compact-nav {
    display: none;
  }

  .compact-brand,
  body.compact-header .compact-brand {
    width: 100%;
    height: 2.65rem;
    display: flex;
  }

  .social-inner > .current-section,
  body.compact-header .current-section {
    min-width: 0;
    display: inline-flex;
    justify-content: flex-start;
    color: var(--planiphika-green);
    font-size: clamp(0.66rem, 2.9vw, 0.84rem);
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    perspective: 30rem;
  }

  .current-section.section-spin {
    animation: sectionSpin 0.48s var(--ease) both;
  }

  .mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: clamp(1.1rem, 4vh, 2rem);
    padding: 1rem 1.2rem;
    background:
      radial-gradient(circle at 18% 14%, rgba(184, 206, 47, 0.22), transparent 28%),
      linear-gradient(rgba(255, 250, 240, 0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 250, 240, 0.07) 1px, transparent 1px),
      linear-gradient(135deg, rgba(184, 206, 47, 0.14), transparent 42%),
      rgba(8, 11, 18, 0.98);
    background-size:
      auto,
      2.4rem 2.4rem,
      2.4rem 2.4rem,
      auto,
      auto;
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-0.5rem);
    transition:
      opacity 0.28s ease,
      visibility 0.28s ease,
      transform 0.28s var(--ease);
  }

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

  .mobile-overlay-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    width: 2.75rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 250, 240, 0.22);
    background: var(--white);
    color: var(--ink);
  }

  .mobile-overlay-close::before,
  .mobile-overlay-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.15rem;
    height: 2px;
    background: currentColor;
  }

  .mobile-overlay-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .mobile-overlay-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .mobile-overlay-logo {
    width: min(13rem, 58vw);
    max-height: 4rem;
    object-fit: contain;
    filter: drop-shadow(0 1.2rem 2.5rem rgba(0, 0, 0, 0.34));
  }

  .mobile-overlay-content {
    width: min(21rem, 100%);
    max-height: calc(100dvh - 8rem);
    display: grid;
    align-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid rgba(255, 250, 240, 0.14);
    background:
      linear-gradient(135deg, rgba(255, 250, 240, 0.09), rgba(255, 250, 240, 0.03)),
      rgba(17, 19, 24, 0.52);
    backdrop-filter: blur(16px);
  }

  .mobile-overlay-content span {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.35rem;
    color: var(--planiphika-green);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .mobile-overlay-content span::before {
    content: "";
    width: 1.05rem;
    height: 1.05rem;
    background:
      linear-gradient(currentColor 0 0) left top / 100% 2px no-repeat,
      linear-gradient(currentColor 0 0) left top / 2px 100% no-repeat,
      radial-gradient(circle at 100% 100%, currentColor 0 2px, transparent 2.4px);
  }

  .mobile-overlay-content a {
    min-height: 3.45rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem 0 3.1rem;
    border: 1px solid rgba(255, 250, 240, 0.13);
    background:
      linear-gradient(90deg, rgba(184, 206, 47, 0.16), transparent 45%),
      rgba(255, 250, 240, 0.065);
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(1.02rem, 4.6vw, 1.25rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    overflow: hidden;
    transition:
      border-color 0.25s ease,
      background 0.25s ease,
      color 0.25s ease,
      transform 0.25s var(--ease);
  }

  .mobile-overlay-content a:nth-of-type(1)::before {
    content: "01";
  }

  .mobile-overlay-content a:nth-of-type(2)::before {
    content: "02";
  }

  .mobile-overlay-content a:nth-of-type(3)::before {
    content: "03";
  }

  .mobile-overlay-content a:nth-of-type(4)::before {
    content: "04";
  }

  .mobile-overlay-content a:nth-of-type(5)::before {
    content: "05";
  }

  .mobile-overlay-content a:nth-of-type(6)::before {
    content: "06";
  }

  .mobile-overlay-content a:nth-of-type(7)::before {
    content: "07";
  }

  .mobile-overlay-content a::before {
    position: absolute;
    left: 0.95rem;
    color: var(--planiphika-green);
    font-size: 0.74rem;
    letter-spacing: 0.08em;
  }

  .mobile-overlay-content a::after {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }

  .mobile-overlay-content a:hover,
  .mobile-overlay-content a:focus-visible {
    border-color: rgba(184, 206, 47, 0.68);
    background: var(--planiphika-green);
    color: var(--ink);
    transform: translateX(0.22rem);
  }

  .mobile-overlay-content a:hover::before,
  .mobile-overlay-content a:focus-visible::before {
    color: var(--ink);
  }

  .mobile-menu-mosaic {
    width: min(22rem, 100%);
    max-height: calc(100dvh - 8rem);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(5.9rem, 1fr);
    gap: 0.65rem;
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .mobile-menu-mosaic > span {
    grid-column: 1 / -1;
    margin-bottom: 0.15rem;
  }

  .mobile-menu-mosaic a {
    min-height: 6rem;
    position: relative;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 0.2rem;
    padding: 0.9rem !important;
    border: 1px solid rgba(255, 250, 240, 0.14);
    border-radius: 16px;
    overflow: hidden;
    background:
      linear-gradient(0deg, rgba(8, 11, 18, 0.82), rgba(8, 11, 18, 0.1) 64%),
      var(--menu-img) center / cover;
    color: var(--white);
    text-transform: none;
    letter-spacing: 0;
    transform: none;
  }

  .mobile-overlay-content.mobile-menu-mosaic a::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(184, 206, 47, 0.2), transparent 52%);
    opacity: 0;
    transition: opacity 0.25s ease;
  }

  .mobile-menu-mosaic a::after {
    content: "";
    position: absolute;
    right: 0.7rem;
    top: 0.7rem;
    width: 1.7rem;
    height: 1.7rem;
    border: 1px solid rgba(255, 250, 240, 0.6);
    border-radius: 999px;
    background:
      linear-gradient(45deg, transparent 45%, currentColor 46% 54%, transparent 55%) center / 0.55rem 0.55rem no-repeat,
      rgba(8, 11, 18, 0.34);
    transform: none;
  }

  .mobile-menu-mosaic a:hover,
  .mobile-menu-mosaic a:focus-visible {
    border-color: rgba(184, 206, 47, 0.86);
    background:
      linear-gradient(0deg, rgba(8, 11, 18, 0.82), rgba(8, 11, 18, 0.08) 64%),
      var(--menu-img) center / cover;
    color: var(--white);
    transform: translateY(-0.18rem);
  }

  .mobile-menu-mosaic a:hover::before,
  .mobile-menu-mosaic a:focus-visible::before {
    opacity: 1;
  }

  .mobile-menu-mosaic strong,
  .mobile-menu-mosaic small {
    position: relative;
    z-index: 1;
    display: block;
  }

  .mobile-menu-mosaic strong {
    font-size: clamp(1rem, 4.7vw, 1.35rem);
    line-height: 1;
  }

  .mobile-menu-mosaic small {
    color: rgba(255, 250, 240, 0.76);
    font-size: 0.64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .mobile-menu-mosaic .mosaic-tall {
    grid-row: span 2;
  }

  .mobile-menu-mosaic .mosaic-wide {
    grid-column: 1 / -1;
  }

  .mobile-overlay-whatsapp {
    background: var(--planiphika-green) !important;
    color: var(--ink);
  }

  .mobile-social-grid {
    width: min(23rem, 100%);
    max-height: calc(100dvh - 7rem);
    padding: 0;
    border: 0;
    background: transparent;
    backdrop-filter: none;
  }

  .mobile-social-icons {
    width: 100%;
    justify-self: center;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    justify-items: center;
    align-items: center;
    gap: clamp(0.8rem, 3.6vw, 1.15rem);
  }

  .mobile-social-icons a {
    width: 100%;
    min-height: clamp(5rem, 16vh, 6.7rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    padding: 0 !important;
    border: 0;
    background: transparent;
    color: var(--white);
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: clamp(0.62rem, 2.7vw, 0.76rem);
    font-weight: 800;
    line-height: 1;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition:
      background 0.25s ease,
      border-color 0.25s ease,
      color 0.25s ease,
      transform 0.25s var(--ease);
  }

  .mobile-social-icons a::before,
  .mobile-social-icons a::after {
    content: none !important;
  }

  .mobile-social-icons a span {
    display: block !important;
    margin: 0;
    width: auto;
    color: var(--planiphika-green);
    font-size: inherit;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: center;
  }

  .mobile-social-icons a span::before {
    content: none;
  }

  .mobile-social-icons svg {
    width: clamp(1.55rem, 7vw, 2rem);
    height: clamp(1.55rem, 7vw, 2rem);
    fill: currentColor;
  }

  .mobile-social-icons a:hover,
  .mobile-social-icons a:focus-visible {
    border-color: transparent;
    background: transparent;
    color: var(--planiphika-green);
    transform: translateY(-0.2rem) scale(1.03);
  }

  .mobile-social-icons a:hover span,
  .mobile-social-icons a:focus-visible span {
    color: var(--white);
  }

  .mobile-social-whatsapp {
    width: 70% !important;
    min-height: 3.2rem !important;
    justify-self: center;
    justify-content: center !important;
    gap: 0.55rem;
    padding: 0 1rem !important;
    border-radius: 19px;
    background: var(--planiphika-green) !important;
    color: var(--ink) !important;
    text-align: center;
  }

  .mobile-social-whatsapp svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: currentColor;
  }

  .mobile-social-whatsapp span {
    margin: 0;
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
  }

  .mobile-social-whatsapp span::before {
    content: none;
  }

  .mobile-social-whatsapp::before,
  .mobile-social-whatsapp::after {
    content: none !important;
  }

  .mobile-overlay-address {
    margin: 0.25rem 0 0;
    color: rgba(255, 250, 240, 0.68);
    font-size: 0.78rem;
    line-height: 1.35;
    text-align: center;
  }

  .mobile-overlay-map {
    width: 100%;
    height: clamp(7rem, 18vh, 9.5rem);
    border: 1px solid rgba(255, 250, 240, 0.14);
    filter: grayscale(0.45) contrast(1.05);
  }

  .mobile-project-modal {
    position: fixed;
    inset: 0;
    z-index: 90;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
      radial-gradient(circle at 12% 12%, rgba(184, 206, 47, 0.22), transparent 28rem),
      linear-gradient(rgba(255, 250, 240, 0.055) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 250, 240, 0.055) 1px, transparent 1px),
      rgba(8, 11, 18, 0.96);
    background-size: auto, 3rem 3rem, 3rem 3rem, auto;
    color: var(--white);
    opacity: 0;
    pointer-events: none;
    transform: scale(1.02);
    transition:
      opacity 0.28s ease,
      transform 0.38s var(--ease);
  }

  .mobile-project-modal.open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .mobile-project-close {
    position: fixed;
    top: max(0.85rem, env(safe-area-inset-top));
    right: 0.85rem;
    z-index: 4;
    width: 2.75rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 250, 240, 0.18);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
  }

  .mobile-project-close::before,
  .mobile-project-close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 1.15rem;
    height: 2px;
    background: currentColor;
  }

  .mobile-project-close::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  .mobile-project-close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  .mobile-project-shell {
    width: min(100%, 48rem);
    height: min(100%, calc(100dvh - 2rem));
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    gap: 1rem;
  }

  .mobile-project-brand {
    display: grid;
    justify-items: center;
    gap: 0.45rem;
  }

  .mobile-project-brand img {
    width: min(12.5rem, 58vw);
    height: auto;
  }

  .mobile-project-brand span,
  .rotate-hint strong,
  .mobile-project-card span,
  .mobile-project-caption span,
  .mobile-project-back {
    color: var(--planiphika-green);
    font-family: Montserrat, Inter, ui-sans-serif, system-ui, sans-serif;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.09em;
  }

  .rotate-hint {
    width: min(22rem, 100%);
    justify-self: center;
    display: grid;
    justify-items: center;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid rgba(184, 206, 47, 0.36);
    background: rgba(8, 11, 18, 0.42);
    text-align: center;
    backdrop-filter: blur(10px);
  }

  .rotate-hint span {
    width: 2.55rem;
    height: 1.55rem;
    border: 2px solid var(--planiphika-green);
    border-radius: 0.35rem;
    transform: rotate(-12deg);
  }

  .rotate-hint p {
    max-width: 18rem;
    margin: 0;
    color: rgba(255, 250, 240, 0.76);
    font-size: 0.84rem;
    line-height: 1.45;
  }

  .mobile-project-menu {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding-right: 0.3rem;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--planiphika-green) rgba(255, 250, 240, 0.08);
  }

  .mobile-project-card {
    min-height: 8.2rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 0.45rem;
    padding: 1rem;
    border: 1px solid rgba(255, 250, 240, 0.14);
    border-radius: 18px;
    overflow: hidden;
    background:
      linear-gradient(0deg, rgba(8, 11, 18, 0.9), rgba(8, 11, 18, 0.16) 64%),
      var(--project-cover) center / cover;
    color: var(--white);
    text-align: left;
    cursor: pointer;
  }

  .mobile-project-card::after {
    content: "";
    position: absolute;
    right: 0.8rem;
    top: 0.8rem;
    width: 1.85rem;
    aspect-ratio: 1;
    border: 1px solid rgba(255, 250, 240, 0.62);
    border-radius: 50%;
    background:
      linear-gradient(45deg, transparent 45%, currentColor 46% 54%, transparent 55%) center / 0.62rem 0.62rem no-repeat,
      rgba(8, 11, 18, 0.28);
  }

  .mobile-project-card strong {
    position: relative;
    z-index: 1;
    max-width: 16ch;
    font-size: clamp(1.45rem, 8vw, 2.3rem);
    line-height: 0.98;
  }

  .mobile-project-card span {
    position: relative;
    z-index: 1;
  }

  .mobile-project-viewer {
    min-height: 0;
    display: none;
  }

  .mobile-project-modal.is-viewing .mobile-project-menu {
    display: none;
  }

  .mobile-project-modal.is-viewing .mobile-project-viewer {
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto auto;
    gap: 0.65rem;
  }

  .mobile-project-back {
    justify-self: start;
    padding: 0.55rem 0.8rem;
    border: 1px solid rgba(184, 206, 47, 0.38);
    background: rgba(184, 206, 47, 0.08);
    cursor: pointer;
  }

  .mobile-project-stage {
    min-height: 0;
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(255, 250, 240, 0.12);
    background: rgba(3, 5, 10, 0.75);
  }

  .mobile-project-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-project-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 2.8rem;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 250, 240, 0.24);
    border-radius: 50%;
    background: rgba(8, 11, 18, 0.68);
    color: var(--white);
    transform: translateY(-50%);
    cursor: pointer;
    backdrop-filter: blur(8px);
  }

  .mobile-project-prev {
    left: 0.7rem;
  }

  .mobile-project-next {
    right: 0.7rem;
  }

  .mobile-project-nav::before {
    content: "";
    width: 0.72rem;
    height: 0.72rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
  }

  .mobile-project-prev::before {
    transform: rotate(-135deg);
  }

  .mobile-project-next::before {
    transform: rotate(45deg);
  }

  .mobile-project-caption {
    display: grid;
    gap: 0.18rem;
  }

  .mobile-project-caption strong {
    color: var(--white);
    font-size: clamp(1.1rem, 5.4vw, 1.55rem);
    line-height: 1.02;
  }

  .mobile-project-thumbs {
    min-height: 4.6rem;
    display: grid;
    grid-template-rows: 4.6rem;
    grid-auto-flow: column;
    grid-auto-columns: 5.2rem;
    gap: 0.45rem;
    padding: 0.2rem 0 0.35rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color: var(--planiphika-green) rgba(255, 250, 240, 0.08);
  }

  .mobile-project-thumb {
    min-width: 0;
    border: 1px solid rgba(255, 250, 240, 0.14);
    padding: 0;
    overflow: hidden;
    background: var(--ink);
    cursor: pointer;
    opacity: 0.62;
    transition:
      opacity 0.22s ease,
      border-color 0.22s ease,
      transform 0.22s var(--ease);
  }

  .mobile-project-thumb.is-active {
    border-color: var(--planiphika-green);
    opacity: 1;
    transform: translateY(-0.15rem);
  }

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

  @media (orientation: landscape) {
    .mobile-project-modal {
      padding: 0.7rem;
    }

    .mobile-project-shell {
      width: 100%;
      height: calc(100dvh - 1.4rem);
      grid-template-rows: auto minmax(0, 1fr);
      gap: 0.65rem;
    }

    .mobile-project-brand {
      position: absolute;
      left: 1rem;
      top: 0.7rem;
      z-index: 3;
      justify-items: start;
      gap: 0;
    }

    .mobile-project-brand img {
      width: 8.5rem;
    }

    .mobile-project-brand span {
      display: none;
    }

    .rotate-hint {
      display: none;
    }

    .mobile-project-menu {
      grid-row: 1 / -1;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      grid-auto-rows: minmax(6.2rem, 1fr);
      align-content: stretch;
      gap: 0.65rem;
      padding: 2.8rem 3.2rem 0.45rem 0.3rem;
    }

    .mobile-project-menu .mobile-project-card:only-child {
      grid-column: 1 / -1;
    }

    .mobile-project-card {
      min-height: 6.2rem;
      padding: 0.75rem;
      border-radius: 12px;
    }

    .mobile-project-card strong {
      max-width: none;
      font-size: clamp(0.82rem, 2vw, 1.2rem);
      line-height: 1.04;
    }

    .mobile-project-card span {
      font-size: clamp(0.46rem, 1.05vw, 0.62rem);
      letter-spacing: 0.04em;
    }

    .mobile-project-modal.is-viewing .mobile-project-viewer {
      grid-row: 1 / -1;
      grid-template-rows: minmax(0, 1fr) auto;
      grid-template-columns: minmax(0, 1fr) 12rem;
      gap: 0.7rem;
      padding: 0 3.3rem 0 0;
    }

    .mobile-project-back {
      position: absolute;
      left: 1rem;
      top: 4rem;
      z-index: 3;
      background: rgba(8, 11, 18, 0.68);
      backdrop-filter: blur(8px);
    }

    .mobile-project-stage {
      grid-column: 1;
      grid-row: 1 / -1;
      min-height: calc(100dvh - 1.4rem);
    }

    .mobile-project-caption {
      grid-column: 2;
      grid-row: 1;
      align-self: end;
      padding-bottom: 0.4rem;
    }

    .mobile-project-caption strong {
      font-size: clamp(1rem, 2.7vw, 1.45rem);
    }

    .mobile-project-thumbs {
      grid-column: 2;
      grid-row: 2;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      grid-template-rows: none;
      grid-auto-flow: row;
      grid-auto-columns: auto;
      grid-auto-rows: 3.7rem;
      min-height: 0;
      max-height: 9.5rem;
      padding-right: 0.3rem;
      overflow-x: hidden;
      overflow-y: auto;
    }
  }

  .hero {
    min-height: 900px;
    padding-bottom: 2rem;
  }

  .hero-actions,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .stats article {
    min-height: 9rem;
  }

  .case-card {
    min-height: auto;
  }

  .case-grid-single .case-card {
    min-height: 28rem;
  }

  .case-grid-single .case-card h3 {
    font-size: clamp(2.4rem, 13vw, 3.7rem);
  }

  .stats article {
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
  }

  .stats span {
    max-width: 15rem;
  }

  .service-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr);
    align-items: center;
    justify-content: start;
    gap: 1rem;
    padding: 1.2rem;
  }

  .service-card h3 {
    max-width: none;
    margin: 0;
    font-size: clamp(1.15rem, 6vw, 1.45rem);
    line-height: 1.02;
  }

  .service-card p {
    grid-column: 1 / -1;
    margin: 0;
    line-height: 1.55;
  }

  .blueprint-board {
    min-height: 34rem;
  }

  .pin span {
    max-width: 9.25rem;
    padding: 0.45rem 0.55rem;
    font-size: 0.78rem;
    line-height: 1.25;
  }

  .pin-readout {
    left: 0.7rem;
    right: 0.7rem;
    bottom: 0.7rem;
    max-width: calc(100% - 1.4rem);
    padding: 0.75rem;
    font-size: clamp(1rem, 5.5vw, 1.35rem);
    line-height: 1;
  }

  .contact-direct {
    grid-template-columns: 1fr;
  }

  .contact-card,
  .contact-socials,
  .map-card {
    grid-column: 1 / -1;
    width: 100%;
  }

  .contact-card {
    min-height: auto;
    gap: 1rem;
  }

  .contact-card h3 {
    max-width: none;
    font-size: clamp(1.12rem, 5.4vw, 1.28rem);
    line-height: 1.02;
   }

  .map-card,
  .map-card iframe {
    min-height: 20rem;
  }
}
