:root {
  --charcoal: #0d0f10;
  --graphite: #1a1d1f;
  --warm-white: #f5f2ea;
  --soft-gray: #d7d7d2;
  --muted: #a8aaa4;
  --green: #1f3a2e;
  --gold: #b99a5b;
  --line: rgba(245, 242, 234, 0.16);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-dark: rgba(13, 15, 16, 0.58);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --shadow-deep: 0 38px 120px rgba(0, 0, 0, 0.48);
  --ease-luxury: cubic-bezier(0.19, 1, 0.22, 1);
  --radius: 24px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--charcoal);
  color: var(--warm-white);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::selection {
  background: rgba(185, 154, 91, 0.34);
  color: var(--warm-white);
}

body.modal-open {
  overflow: hidden;
}

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

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

button,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 80;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), #f5f2ea, #159447);
  box-shadow: 0 0 22px rgba(185, 154, 91, 0.48);
}

.ambient-architecture {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(245, 242, 234, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(245, 242, 234, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(180deg, transparent 0, #000 18%, #000 72%, transparent 100%);
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  width: min(calc(100% - 32px), 1240px);
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  transform: translateX(-50%);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px 0 18px;
  transition: background 260ms var(--ease-luxury), border-color 260ms var(--ease-luxury), box-shadow 260ms var(--ease-luxury), transform 260ms var(--ease-luxury);
}

.site-header.is-scrolled,
.site-header.menu-open {
  background: rgba(13, 15, 16, 0.72);
  border-color: var(--line);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-logo {
  width: 174px;
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.32));
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 26px);
  color: rgba(245, 242, 234, 0.82);
  font-size: 0.9rem;
}

.desktop-nav a {
  position: relative;
  transition: color 180ms ease;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--gold);
  transition: transform 260ms var(--ease-luxury);
}

.desktop-nav a:hover,
.desktop-nav a.is-active {
  color: var(--warm-white);
}

.desktop-nav a:hover::after,
.desktop-nav a.is-active::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-control select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--warm-white);
  padding: 0 32px 0 14px;
}

.language-control option {
  color: var(--charcoal);
}

.menu-button {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--warm-white);
  padding: 0;
}

.menu-button span {
  display: block;
  width: 20px;
  height: 2px;
  flex: 0 0 2px;
  background: currentColor;
  border-radius: 999px;
}

.menu-button span + span {
  margin-top: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: transform 220ms var(--ease-luxury), border-color 220ms var(--ease-luxury), background 220ms var(--ease-luxury), box-shadow 220ms var(--ease-luxury);
  cursor: pointer;
  touch-action: manipulation;
}

.button::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: transform 620ms var(--ease-luxury);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.button:hover::before {
  transform: translateX(120%) skewX(-18deg);
}

.button:active {
  transform: translateY(0) scale(0.98);
}

.button-small {
  min-height: 42px;
  padding-inline: 18px;
  font-size: 0.9rem;
}

.button-solid {
  background: var(--warm-white);
  color: var(--charcoal);
}

.button-glass {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line);
  color: var(--warm-white);
  backdrop-filter: blur(18px);
}

.button-dark {
  background: var(--charcoal);
  color: var(--warm-white);
}

.button-row,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-dark {
  position: relative;
  background:
    radial-gradient(circle at 18% 18%, rgba(31, 58, 46, 0.34), transparent 28rem),
    linear-gradient(180deg, var(--charcoal), #111615);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px max(24px, calc((100vw - var(--max)) / 2)) 56px;
  overflow: hidden;
  contain: paint;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(13, 15, 16, 0.78) 0%, rgba(13, 15, 16, 0.45) 48%, rgba(13, 15, 16, 0.72) 100%),
    url("assets/site-images/hero-francosta-desktop.jpg") center/cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.06);
  will-change: transform;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28vh;
  background: linear-gradient(transparent, var(--charcoal));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(700px, 100%);
  padding: clamp(24px, 3.4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 15, 16, 0.45);
  box-shadow: var(--shadow-deep);
  backdrop-filter: blur(18px);
}

.hero-content::before,
.glass-card::before,
.mini-card::before,
.portfolio-option::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), transparent 38%, rgba(185, 154, 91, 0.12));
  opacity: 0.62;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 0.98;
  letter-spacing: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(2.75rem, 4.75vw, 4.35rem);
}

h2 {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

p {
  color: var(--soft-gray);
}

.hero-content p:not(.eyebrow) {
  max-width: 660px;
  margin: 24px 0;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
}

.message-grid,
.stats,
.process-rail,
.projects,
.gallery,
.vision {
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
}

.message-grid,
.stats,
.project-grid,
.vision-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.glass-card,
.mini-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--glass);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translate3d(0, 0, 0) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 360ms var(--ease-luxury), border-color 360ms var(--ease-luxury), box-shadow 360ms var(--ease-luxury), background 360ms var(--ease-luxury);
  will-change: transform;
}

.glass-card:hover,
.mini-card:hover,
.portfolio-option:hover {
  border-color: rgba(185, 154, 91, 0.34);
  background: rgba(255, 255, 255, 0.105);
  box-shadow: var(--shadow-deep);
}

.glass-card {
  padding: clamp(22px, 3vw, 34px);
}

.icon,
.glass-card svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.glass-card svg {
  color: var(--gold);
  margin-bottom: 42px;
}

.glass-card h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
  line-height: 1.05;
}

.stat {
  text-align: center;
}

.stat strong,
.stat span {
  display: inline-block;
  color: var(--warm-white);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: clamp(3rem, 5.1vw, 4.8rem);
  font-weight: 700;
  line-height: 0.9;
  white-space: nowrap;
}

.stat-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.08em;
  white-space: nowrap;
}

.stat-value strong,
.stat-value span {
  font-size: clamp(2.35rem, 4.35vw, 4.25rem);
}

.process-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  overflow: hidden;
}

.process-line {
  position: absolute;
  top: 106px;
  left: max(24px, calc((100vw - var(--max)) / 2));
  right: max(24px, calc((100vw - var(--max)) / 2));
  height: 1px;
  background: rgba(245, 242, 234, 0.12);
}

.process-line span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--gold), rgba(21, 148, 71, 0.55), transparent);
  animation: railTrace 5.8s var(--ease-luxury) infinite;
}

.process-step {
  position: relative;
  z-index: 1;
  min-height: 260px;
  border-top: 1px solid rgba(185, 154, 91, 0.42);
  padding: 34px 18px 0 0;
}

.process-step::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 0;
  width: 13px;
  height: 13px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--charcoal);
  box-shadow: 0 0 28px rgba(185, 154, 91, 0.38);
}

.process-step small {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.process-step h2 {
  max-width: 10ch;
  font-size: clamp(1.4rem, 2.4vw, 2.45rem);
  line-height: 1;
}

.process-step p {
  max-width: 26ch;
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 96px max(24px, calc((100vw - var(--max)) / 2));
}

.image-panel img {
  width: 100%;
  min-height: 680px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 420ms var(--ease-luxury);
}

.split-copy > p:not(.eyebrow) {
  font-size: 1.08rem;
}

.mini-card-grid {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.mini-card {
  padding: 20px;
}

.mini-card p {
  margin-bottom: 0;
}

.light-section {
  background: var(--warm-white);
  color: var(--charcoal);
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
}

.light-section p {
  color: #51554e;
}

.solution-card {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(24px, 4vw, 58px);
  align-items: center;
}

.solution-card h2 {
  max-width: 10ch;
}

.solution-card img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

.future {
  min-height: 760px;
  display: grid;
  align-items: end;
  padding: 92px max(24px, calc((100vw - var(--max)) / 2));
  overflow: hidden;
  contain: paint;
}

.future-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(13, 15, 16, 0.1), rgba(13, 15, 16, 0.85)),
    url("assets/site-images/consultancy-detail.jpg") center/cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1.04);
  will-change: transform;
}

.future-copy {
  position: relative;
  width: min(720px, 100%);
}

.value-bars {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.value-bars span {
  display: block;
  border-left: 3px solid var(--gold);
  background: rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  color: var(--warm-white);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-card {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--graphite);
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 16, 0.04), rgba(13, 15, 16, 0.86));
}

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

.project-card div {
  position: absolute;
  inset: auto 16px 16px;
  z-index: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(13, 15, 16, 0.46);
  padding: 22px;
  backdrop-filter: blur(18px);
}

.project-card a,
.project-card button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font: inherit;
  font-weight: 800;
  padding: 0;
  cursor: pointer;
}

.project-card {
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 420ms var(--ease-luxury), box-shadow 420ms var(--ease-luxury);
}

.project-card:hover {
  box-shadow: var(--shadow-deep);
}

.portfolio {
  min-height: 620px;
  display: grid;
  place-items: center;
  padding: 92px 24px;
  background:
    linear-gradient(180deg, rgba(13, 15, 16, 0.82), rgba(13, 15, 16, 0.9)),
    url("assets/site-images/commercial-nunc.jpg") center/cover;
}

.portfolio-card,
.contact-card {
  width: min(960px, 100%);
  text-align: center;
}

.portfolio-card .button-row,
.contact-card .contact-actions {
  justify-content: center;
}

.portfolio-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
  text-align: left;
}

.portfolio-option {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 15, 16, 0.48);
  padding: 24px;
  box-shadow: var(--shadow);
  transform: perspective(1100px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 420ms var(--ease-luxury), border-color 420ms var(--ease-luxury), background 420ms var(--ease-luxury), box-shadow 420ms var(--ease-luxury);
}

.portfolio-option span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portfolio-option h3 {
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
}

.portfolio-option .button-row {
  justify-content: flex-start;
  align-self: end;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

.gallery-grid .wide {
  grid-column: span 2;
}

.vision-grid {
  grid-template-columns: repeat(2, 1fr);
}

.vision article {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.contact {
  display: grid;
  place-items: center;
  min-height: 760px;
  padding: 92px 24px;
  background:
    linear-gradient(180deg, rgba(13, 15, 16, 0.7), rgba(13, 15, 16, 0.92)),
    url("assets/site-images/contact-modern-residence.jpg") center/cover;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 30px 0 0;
  text-align: left;
}

.contact-list div {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.contact-list dt {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 4px 0 0;
  color: var(--soft-gray);
}

.site-footer {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr;
  gap: 34px;
  padding: 46px max(24px, calc((100vw - var(--max)) / 2));
  border-top: 1px solid var(--line);
  background: #090b0c;
}

.footer-logo {
  width: 190px;
  height: auto;
  margin-bottom: 14px;
}

.site-footer a,
.site-footer strong {
  display: block;
}

.site-footer a,
.site-footer p {
  color: var(--muted);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  padding: 96px 16px 16px;
  background: rgba(13, 15, 16, 0.52);
  backdrop-filter: blur(18px);
}

.mobile-menu.is-open {
  display: block;
}

.mobile-menu-panel {
  display: grid;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 15, 16, 0.72);
  padding: 24px;
}

.mobile-menu-panel > a:not(.button) {
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 2rem;
  line-height: 1.05;
}

.mobile-language {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mobile-language button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--warm-white);
  padding: 0 12px;
}

.portfolio-modal {
  width: min(1180px, calc(100vw - 32px));
  max-width: none;
  height: min(820px, calc(100vh - 32px));
  max-height: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 15, 16, 0.82);
  color: var(--warm-white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  padding: 0;
  opacity: 0;
  transform: translateY(18px) scale(0.975);
  transition: opacity 260ms var(--ease-luxury), transform 320ms var(--ease-luxury);
}

.portfolio-modal[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.portfolio-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(10px);
}

.modal-shell {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
}

.modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 16px;
}

.modal-topbar span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.modal-actions {
  display: flex;
  gap: 8px;
}

.modal-actions a,
.modal-actions button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--warm-white);
}

.portfolio-stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(185, 154, 91, 0.12), transparent 36%),
    #f4f1ea;
}

.portfolio-viewer {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  scroll-behavior: smooth;
}

.portfolio-page {
  width: min(100%, 1080px);
  margin: 0 auto 18px;
  overflow: hidden;
  border: 1px solid rgba(13, 15, 16, 0.16);
  border-radius: 12px;
  background: #e7e1d6;
  box-shadow: 0 22px 70px rgba(13, 15, 16, 0.22);
}

.portfolio-page img {
  width: 100%;
  height: auto;
  min-height: 42vw;
  object-fit: cover;
  background: #f4f1ea;
}

.portfolio-page:last-child {
  margin-bottom: 0;
}

.portfolio-loader,
.pdf-loader,
.pdf-error {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 24px;
  text-align: center;
}

.portfolio-loader {
  color: var(--graphite);
  background:
    linear-gradient(180deg, rgba(244, 241, 234, 0.92), rgba(244, 241, 234, 0.98)),
    radial-gradient(circle at 50% 50%, rgba(185, 154, 91, 0.22), transparent 28%);
}

.portfolio-loader[hidden] {
  display: none;
}

.portfolio-loader span {
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border: 3px solid rgba(13, 15, 16, 0.12);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 900ms linear infinite;
}

.portfolio-loader p {
  max-width: 48ch;
  color: rgba(13, 15, 16, 0.58);
}

.pdf-error {
  display: none !important;
  gap: 12px;
  background: rgba(13, 15, 16, 0.8);
}

.reveal {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  transition:
    opacity 760ms var(--ease-luxury),
    transform 760ms var(--ease-luxury),
    filter 760ms var(--ease-luxury);
  transition-delay: var(--reveal-delay, 0ms);
}

.motion-ready .reveal {
  opacity: 1;
  transform: translateY(18px) scale(0.992);
  filter: blur(3px);
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes railTrace {
  0% {
    transform: translateX(-110%);
    opacity: 0;
  }
  18%,
  72% {
    opacity: 1;
  }
  100% {
    transform: translateX(260%);
    opacity: 0;
  }
}

@keyframes railTraceVertical {
  0% {
    transform: translateY(-115%);
    opacity: 0;
  }
  18%,
  72% {
    opacity: 1;
  }
  100% {
    transform: translateY(260%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 960px) {
  .desktop-nav,
  .header-actions .button-small {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .message-grid,
  .stats,
  .process-rail,
  .project-grid,
  .split,
  .solution-card,
  .vision-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .image-panel img {
    min-height: 420px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid .wide {
    grid-column: span 1;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 20px);
  }

  .brand span:last-child {
    display: none;
  }

  .brand-logo {
    width: 132px;
  }

  .language-control {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding: 116px 16px 48px;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(13, 15, 16, 0.78) 0%, rgba(13, 15, 16, 0.48) 52%, rgba(13, 15, 16, 0.76) 100%),
      url("assets/site-images/hero-francosta-mobile.jpg") center/cover;
  }

  .hero-content {
    background: rgba(13, 15, 16, 0.58);
    backdrop-filter: none;
    padding: 22px;
  }

  .button-glass {
    backdrop-filter: none;
  }

  h1 {
    max-width: 9ch;
    font-size: clamp(2.38rem, 11.5vw, 3.25rem);
  }

  .button,
  .button-row,
  .contact-actions {
    width: 100%;
  }

  .message-grid,
  .stats,
  .process-rail,
  .projects,
  .gallery,
  .vision,
  .split,
  .light-section,
  .future {
    padding: 64px 16px;
  }

  .project-card {
    min-height: 420px;
  }

  .process-rail {
    gap: 0;
  }

  .process-line {
    top: 64px;
    bottom: 64px;
    left: 22px;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-line span {
    width: 100%;
    height: 36%;
    animation-name: railTraceVertical;
  }

  .process-step {
    min-height: 0;
    border-top: 0;
    border-left: 1px solid rgba(185, 154, 91, 0.34);
    padding: 0 0 34px 28px;
  }

  .process-step::before {
    top: 3px;
    left: -7px;
  }

  .process-step h2 {
    max-width: none;
  }

  .gallery-grid,
  .contact-list,
  .portfolio-options {
    grid-template-columns: 1fr;
  }

  .gallery-grid img {
    height: 260px;
  }

  .hero-bg,
  .future-media {
    transform: translate3d(0, var(--parallax-y, 0px), 0) scale(1);
    will-change: auto;
  }

  .portfolio-modal {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px);
  }

  .modal-topbar {
    align-items: flex-start;
  }

  .portfolio-viewer {
    padding: 10px;
  }

  .portfolio-page {
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(13, 15, 16, 0.2);
  }

  .portfolio-page img {
    min-height: 52vw;
  }
}
