:root {
  --ink: #171816;
  --ink-soft: #252622;
  --paper: #f2eee5;
  --paper-deep: #e7e0d3;
  --white: #fffdf7;
  --accent: #ff6b18;
  --accent-light: #ffb07b;
  --signal: #dce94f;
  --line: rgba(23, 24, 22, 0.16);
  --line-light: rgba(255, 255, 255, 0.2);
  --muted: #66675f;
  --success: #23c36b;
  --radius-sm: 0.75rem;
  --radius-md: 1.25rem;
  --radius-lg: 2rem;
  --shadow: 0 1.5rem 5rem rgba(19, 20, 18, 0.12);
  --shell: min(1280px, calc(100vw - 3rem));
  --header-height: 5.5rem;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  min-width: 20rem;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.13'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--white);
}

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

button,
input,
textarea,
select {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

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

p,
h1,
h2,
h3,
blockquote,
figure {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-160%);
  border-radius: 0.5rem;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  transition: color 260ms var(--ease), background-color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.site-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
  content: "";
}

.site-header.is-scrolled {
  background: rgba(242, 238, 229, 0.92);
  box-shadow: 0 0.65rem 2rem rgba(23, 24, 22, 0.08);
  color: var(--ink);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled::after {
  background: var(--line);
}

.header-inner {
  display: flex;
  width: var(--shell);
  height: var(--header-height);
  margin-inline: auto;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

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

.brand img {
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 50%;
  background: #ffc928;
  object-fit: cover;
}

.brand span {
  display: grid;
  line-height: 1;
  text-transform: uppercase;
}

.brand strong {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.brand small {
  margin-top: 0.28rem;
  font-size: 0.64rem;
  font-weight: 650;
  letter-spacing: 0.22em;
  opacity: 0.72;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}

.main-nav a {
  position: relative;
  padding-block: 0.5rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.15rem;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--accent);
  content: "";
  transition: transform 220ms var(--ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.header-cta {
  display: inline-flex;
  min-height: 2.85rem;
  padding-inline: 1.1rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  transition: color 180ms ease, background-color 180ms ease;
}

.header-cta:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--white);
}

.language-select {
  position: relative;
}

.language-toggle,
.menu-toggle {
  display: inline-flex;
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 850;
}

.language-toggle svg {
  width: 0.85rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.language-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.language-list {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  width: 13rem;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.language-list[hidden] {
  display: none;
}

.language-option {
  display: flex;
  width: 100%;
  min-height: 2.8rem;
  padding: 0.6rem 0.75rem;
  border-radius: 0.65rem;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 650;
}

.language-option:hover,
.language-option:focus-visible,
.language-option[aria-selected="true"] {
  background: var(--paper);
}

.language-option[aria-selected="true"]::before {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
  content: "";
}

.language-option[aria-selected="true"] span:first-of-type {
  margin-right: auto;
  margin-left: 0.5rem;
}

.language-option span:last-child {
  color: var(--muted);
  font-size: 0.68rem;
}

.menu-toggle {
  display: none;
}

.menu-toggle svg,
.button svg,
.text-link svg,
.project-card__cta svg,
.contact-direct svg,
.form-submit svg,
.whatsapp-fab svg,
.team-card a svg,
.file-picker svg,
.file-info-toggle svg,
.dialog-close svg {
  width: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.hero {
  position: relative;
  display: grid;
  min-height: max(47rem, 100svh);
  overflow: hidden;
  align-items: center;
  color: var(--white);
  isolation: isolate;
}

.hero__media,
.hero__veil,
.hero__grid {
  position: absolute;
  inset: 0;
}

.hero__media {
  z-index: -3;
  transform: scale(1.01);
  background: #29475b url("assets/images/optimized/hero-denofrio.webp") center center / cover no-repeat;
  animation: hero-in 1.4s var(--ease) both;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 15, 15, 0.89) 0%, rgba(12, 15, 15, 0.68) 35%, rgba(12, 15, 15, 0.12) 70%),
    linear-gradient(0deg, rgba(12, 15, 15, 0.82) 0%, transparent 38%);
}

.hero__grid {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: calc(100vw / 6) 100%, calc(100vw / 6) 100%;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

@keyframes hero-in {
  from { opacity: 0; transform: scale(1.08); }
  to { opacity: 1; transform: scale(1.01); }
}

.hero__content {
  padding-top: calc(var(--header-height) + 3rem);
  padding-bottom: 11rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1.2;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2rem;
  height: 2px;
  background: currentColor;
  content: "";
}

.eyebrow--light {
  color: var(--signal);
}

.hero h1 {
  max-width: 10ch;
  margin-top: 1.2rem;
  font-size: clamp(3.7rem, 8.5vw, 8.6rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.85;
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero h1 em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.79em;
  font-weight: 400;
  letter-spacing: -0.055em;
}

.hero__intro {
  max-width: 39rem;
  margin-top: 1.8rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 1.6vw, 1.32rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  min-height: 3.5rem;
  padding: 0.85rem 1.3rem;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.02em;
  transition: transform 200ms var(--ease), background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.button svg {
  transition: transform 200ms var(--ease);
}

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

.button:hover svg {
  transform: translateX(0.25rem);
}

.button--accent {
  background: var(--accent);
  color: var(--white);
}

.button--accent:hover {
  background: #ff7d33;
}

.button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.button--ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

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

.button--dark:hover {
  background: #30322e;
}

.hero__bottom {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  min-height: 8.5rem;
  align-items: stretch;
  justify-content: space-between;
  border-top: 1px solid var(--line-light);
}

.hero__scroll {
  display: flex;
  padding-right: 2rem;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__scroll span {
  position: relative;
  display: block;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
}

.hero__scroll span::after {
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 1px;
  height: 0.7rem;
  background: var(--signal);
  content: "";
  animation: scroll-cue 1.6s ease-in-out infinite;
}

@keyframes scroll-cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.45; }
  50% { transform: translate(-50%, 0.35rem); opacity: 1; }
}

.hero__facts {
  display: grid;
  width: min(48rem, 62vw);
  grid-template-columns: repeat(3, 1fr);
}

.hero__facts div {
  display: flex;
  padding: 1.4rem 1.6rem;
  border-left: 1px solid var(--line-light);
  flex-direction: column;
  justify-content: center;
}

.hero__facts strong {
  font-size: 1.05rem;
  font-weight: 820;
}

.hero__facts span {
  margin-top: 0.1rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  padding-block: clamp(5.5rem, 9vw, 9rem);
}

.section-heading {
  display: grid;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  grid-template-columns: minmax(10rem, 0.7fr) 2fr;
  gap: 2rem;
  align-items: start;
}

.section-heading > div {
  max-width: 56rem;
}

.section-heading h2,
.about h2,
.contact h2 {
  font-size: clamp(2.7rem, 5.4vw, 5.7rem);
  font-weight: 870;
  letter-spacing: -0.06em;
  line-height: 0.94;
}

.section-heading > div > p {
  max-width: 45rem;
  margin-top: 1.3rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.section-heading--dark h2 {
  color: var(--white);
}

.section-heading--dark > div > p {
  color: rgba(255, 255, 255, 0.6);
}

.services {
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(23, 24, 22, 0.045) 50%, transparent calc(50% + 0.5px)),
    var(--paper);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.service-card {
  position: relative;
  display: flex;
  min-height: 22rem;
  padding: 1.45rem;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
  background: rgba(255, 255, 255, 0.15);
  transition: background-color 240ms ease, transform 240ms var(--ease), box-shadow 240ms ease;
}

.service-card:not(.service-card--featured)::after {
  position: absolute;
  right: -2rem;
  bottom: -2rem;
  width: 8rem;
  height: 8rem;
  transform: scale(0.4);
  border-radius: 50%;
  background: var(--signal);
  content: "";
  opacity: 0;
  transition: transform 300ms var(--ease), opacity 300ms ease;
}

.service-card:hover {
  z-index: 1;
  transform: translateY(-0.3rem);
  background: var(--white);
  box-shadow: 0 1rem 2.7rem rgba(23, 24, 22, 0.1);
}

.service-card:not(.service-card--featured):hover::after {
  transform: scale(1);
  opacity: 0.1;
}

.service-card__top {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.service-card__number {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.service-card__icon {
  display: grid;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
}

.service-card__icon svg {
  width: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.service-card h3 {
  max-width: 14ch;
  margin-top: auto;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.service-card p {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.service-card--featured {
  min-height: 25rem;
  grid-column: span 2;
  background: var(--accent);
  color: var(--ink);
}

.service-card--featured:hover {
  background: #ff7a2d;
}

.service-card--featured::before {
  position: absolute;
  right: -4rem;
  bottom: -6rem;
  width: 22rem;
  height: 22rem;
  border: 1px solid rgba(23, 24, 22, 0.22);
  border-radius: 50%;
  box-shadow: 0 0 0 3.5rem rgba(23, 24, 22, 0.04), 0 0 0 7rem rgba(23, 24, 22, 0.035);
  content: "";
}

.service-card--featured h3 {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.service-card--featured p {
  max-width: 38rem;
  color: rgba(23, 24, 22, 0.72);
}

.service-card__badges {
  display: flex;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.status-chip,
.date-chip,
.demo-label,
.gallery-chip {
  display: inline-flex;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  align-items: center;
  background: var(--ink);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.date-chip {
  border: 1px solid rgba(23, 24, 22, 0.35);
  background: transparent;
  color: var(--ink);
}

.text-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  margin-top: 1.3rem;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 0.3rem;
}

.projects {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.projects::before {
  position: absolute;
  top: -14rem;
  right: -10rem;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.018), 0 0 0 10rem rgba(255, 255, 255, 0.012);
  content: "";
}

.projects-list {
  display: grid;
  gap: 2.25rem;
}

.project-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-lg);
  background: var(--ink-soft);
}

.project-card__button {
  display: flex;
  width: 100%;
  padding: 0;
  flex-direction: column;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.project-card__visuals {
  display: grid;
  width: 100%;
  height: clamp(22rem, 47vw, 38rem);
  padding: 0.9rem 0.9rem 0;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

.project-card__image {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 0.55rem);
  background: #3b3b37;
  transition: transform 360ms var(--ease);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms var(--ease), filter 360ms ease;
}

.project-card__image--before img {
  filter: saturate(0.72) brightness(0.84);
}

.project-card__button:hover .project-card__image--before {
  transform: translateY(-0.25rem) rotate(-0.25deg);
}

.project-card__button:hover .project-card__image--after {
  transform: translateY(-0.5rem) rotate(0.25deg);
}

.project-card__button:hover .project-card__image img {
  transform: scale(1.025);
}

.image-label,
.comparison__label {
  position: absolute;
  z-index: 2;
  top: 1rem;
  left: 1rem;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  background: rgba(23, 24, 22, 0.82);
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.image-label--after {
  right: 1rem;
  left: auto;
  background: var(--signal);
  color: var(--ink);
}

.project-card__content {
  display: block;
  padding: 1.4rem 1.65rem 1.8rem;
}

.project-card__meta {
  display: flex;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line-light);
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card__copy {
  display: grid;
  padding-top: 1.3rem;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 1.5rem;
  align-items: end;
}

.project-card__copy > span:first-child {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
}

.project-card__index {
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.project-card__title {
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
}

.project-card__description {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
  line-height: 1.5;
}

.project-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--signal);
  font-size: 0.72rem;
  font-weight: 820;
  white-space: nowrap;
}

.project-dialog {
  width: min(1080px, calc(100vw - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 1.5rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 2rem 8rem rgba(0, 0, 0, 0.4);
}

.project-dialog::backdrop {
  background: rgba(10, 11, 10, 0.84);
  backdrop-filter: blur(8px);
}

.project-dialog__panel {
  position: relative;
}

.dialog-close {
  position: absolute;
  z-index: 5;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  place-items: center;
  background: rgba(23, 24, 22, 0.82);
  color: var(--white);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.comparison {
  --position: 50%;
  position: relative;
  height: min(63dvh, 42rem);
  min-height: 24rem;
  overflow: hidden;
  background: #b8b6af;
  user-select: none;
  touch-action: pan-y;
}

.comparison img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison__before {
  position: absolute;
  z-index: 1;
  inset: 0 auto 0 0;
  width: var(--position);
  overflow: hidden;
}

.comparison__before img {
  width: min(1080px, calc(100vw - 2rem));
  max-width: none;
  filter: saturate(0.78) brightness(0.9);
}

.comparison__label {
  z-index: 3;
}

.comparison__label--after {
  right: 4.7rem;
  left: auto;
  background: var(--signal);
  color: var(--ink);
}

.comparison__handle {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: var(--position);
  width: 3px;
  transform: translateX(-50%);
  background: var(--white);
  pointer-events: none;
  box-shadow: 0 0 1rem rgba(0, 0, 0, 0.2);
}

.comparison__handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 3.6rem;
  height: 3.6rem;
  transform: translate(-50%, -50%);
  border: 2px solid var(--white);
  border-radius: 50%;
  place-items: center;
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.22);
  font-size: 1.2rem;
  font-weight: 900;
}

.comparison__range {
  position: absolute;
  z-index: 4;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: ew-resize;
  opacity: 0;
}

.comparison__range:focus-visible {
  opacity: 0.01;
  outline: 4px solid var(--signal);
  outline-offset: -6px;
}

.project-dialog__content {
  padding: clamp(1.5rem, 4vw, 3.2rem);
}

.project-dialog__meta {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-dialog h2 {
  max-width: 18ch;
  margin-top: 0.55rem;
  font-size: clamp(2rem, 4.5vw, 4rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.project-dialog__description {
  max-width: 48rem;
  margin-top: 1.2rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.project-dialog__hint {
  margin-top: 1.5rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gallery {
  background: var(--paper-deep);
}

.gallery-grid {
  display: grid;
  grid-auto-flow: dense;
  grid-auto-rows: 13rem;
  grid-template-columns: repeat(12, 1fr);
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: #d0c9bd;
}

.gallery-item--1,
.gallery-item--6 {
  grid-column: span 5;
  grid-row: span 3;
}

.gallery-item--2,
.gallery-item--5 {
  grid-column: span 4;
  grid-row: span 2;
}

.gallery-item--3,
.gallery-item--4 {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms var(--ease), filter 300ms ease;
}

.gallery-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(16, 17, 15, 0.82));
  content: "";
}

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

.gallery-item figcaption {
  position: absolute;
  z-index: 2;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  color: var(--white);
}

.gallery-item figcaption > span:not(.gallery-chip) {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.2;
}

.gallery-item time {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.72rem;
}

.gallery-chip {
  background: var(--signal);
  color: var(--ink);
}

.about {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--white);
}

.about::before {
  position: absolute;
  top: 5rem;
  left: -10vw;
  color: rgba(255, 255, 255, 0.025);
  content: "DENOFRIO";
  font-size: 22vw;
  font-weight: 950;
  letter-spacing: -0.09em;
  line-height: 1;
  white-space: nowrap;
}

.about-intro {
  position: relative;
  display: grid;
  padding-bottom: 4.5rem;
  grid-template-columns: 0.7fr 1.1fr 0.8fr;
  gap: 2rem;
  align-items: start;
}

.about-intro > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.62);
  font-size: 1.05rem;
}

.about-area {
  display: flex;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line-light);
  gap: 1rem;
}

.about-area > span {
  color: var(--accent);
  font-size: 1.4rem;
}

.about-area strong {
  display: block;
  line-height: 1.35;
}

.about-area p {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.86rem;
}

.team-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
}

.team-card {
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: var(--radius-md);
  background: #20211e;
}

.team-card__photo {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 4.3;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 38%, rgba(220, 233, 79, 0.18), transparent 28%),
    linear-gradient(145deg, #30322d, #1c1d1a);
}

.team-card__photo::before,
.team-card__photo::after {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.team-card__photo::before {
  width: 16rem;
  height: 16rem;
}

.team-card__photo::after {
  width: 24rem;
  height: 24rem;
}

.team-card__monogram {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(7rem, 14vw, 12rem);
  line-height: 1;
  opacity: 0.1;
}

.team-card__pending {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-card__content {
  position: relative;
  padding: 1.3rem;
}

.team-card__index {
  position: absolute;
  top: 1.45rem;
  right: 1.3rem;
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
}

.team-card h3 {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.team-card p {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.86rem;
}

.team-card a {
  display: inline-flex;
  margin-top: 1.1rem;
  align-items: center;
  gap: 0.5rem;
  color: var(--signal);
  font-size: 0.75rem;
  font-weight: 780;
}

.reviews {
  background: var(--white);
}

.demo-label {
  margin-top: 1.2rem;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.review-card {
  display: flex;
  min-height: 23rem;
  padding: 1.6rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  flex-direction: column;
}

.review-card__top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.72rem;
}

.stars {
  color: var(--accent);
  font-family: inherit;
  letter-spacing: 0.12em;
}

.review-card blockquote {
  margin-top: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.25;
}

.review-card > p {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 780;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact {
  position: relative;
  overflow: hidden;
  background: var(--accent);
}

.contact::before {
  position: absolute;
  top: -15rem;
  left: 38%;
  width: 45rem;
  height: 45rem;
  border: 1px solid rgba(23, 24, 22, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 6rem rgba(23, 24, 22, 0.025), 0 0 0 12rem rgba(23, 24, 22, 0.02);
  content: "";
}

.contact-grid {
  position: relative;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}

.contact .eyebrow {
  color: var(--ink);
}

.contact-copy > p:not(.eyebrow) {
  max-width: 35rem;
  margin-top: 1.5rem;
  color: rgba(23, 24, 22, 0.72);
  font-size: 1.08rem;
}

.contact-direct {
  margin-top: 3.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(23, 24, 22, 0.3);
}

.contact-direct h3 {
  font-size: 1.2rem;
}

.contact-direct p {
  max-width: 33rem;
  margin-top: 0.55rem;
  color: rgba(23, 24, 22, 0.66);
  font-size: 0.9rem;
}

.contact-direct > div {
  display: flex;
  margin-top: 1.2rem;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.contact-direct a {
  display: inline-flex;
  min-height: 2.7rem;
  padding-inline: 0.95rem;
  border: 1px solid rgba(23, 24, 22, 0.35);
  border-radius: 999px;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 800;
  transition: background-color 180ms ease, color 180ms ease;
}

.contact-direct a:hover {
  background: var(--ink);
  color: var(--white);
}

.quote-form {
  display: grid;
  padding: clamp(1.4rem, 3.5vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: 0 2rem 5rem rgba(23, 24, 22, 0.18);
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.quote-form label:not(.file-picker),
.file-field {
  display: grid;
  gap: 0.45rem;
}

.quote-form label > span,
.file-field__label > span:first-child {
  font-size: 0.72rem;
  font-weight: 820;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.quote-form input:not([type="file"]),
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  outline: 0;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.quote-form input:not([type="file"]),
.quote-form select {
  height: 3rem;
}

.quote-form textarea {
  min-height: 8.5rem;
  padding-top: 0.7rem;
  resize: vertical;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent);
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: #8b8b83;
}

.file-field__label {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.file-info-toggle {
  display: grid;
  width: 1.35rem;
  height: 1.35rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.file-info-toggle svg {
  width: 0.85rem;
}

.file-info {
  position: absolute;
  z-index: 5;
  top: calc(100% + 0.6rem);
  left: 0;
  width: min(26rem, calc(100vw - 5rem));
  padding: 0.9rem;
  border-radius: 0.8rem;
  background: var(--ink);
  box-shadow: 0 0.8rem 2rem rgba(23, 24, 22, 0.2);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
}

.file-info[hidden] {
  display: none;
}

.file-picker {
  display: inline-flex;
  width: fit-content;
  min-height: 2.9rem;
  padding-inline: 1rem;
  border: 1px dashed #99998f;
  border-radius: 0.75rem;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 780;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.file-picker:hover {
  border-color: var(--accent);
  background: var(--white);
}

.file-picker input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.file-picker:has(input:focus-visible) {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}

.file-status {
  color: var(--muted);
  font-size: 0.75rem;
}

.form-privacy {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.form-submit {
  width: 100%;
  border: 0;
}

.site-footer {
  padding: 5rem 0 7.5rem;
  background: #111210;
  color: var(--white);
}

.footer-grid {
  display: grid;
  padding-bottom: 4rem;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
}

.brand--footer img {
  width: 4rem;
  height: 4rem;
}

.brand--footer strong {
  font-size: 1.15rem;
}

.footer-brand > p {
  max-width: 27rem;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.48);
}

.footer-grid h2 {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid a,
.footer-grid > div:not(.footer-brand) p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.85rem;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line-light);
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
}

.whatsapp-fab {
  position: fixed;
  z-index: 85;
  right: 1.25rem;
  bottom: 4.9rem;
  display: inline-flex;
  min-height: 3.25rem;
  padding: 0.7rem 1rem;
  border: 2px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  align-items: center;
  gap: 0.55rem;
  background: #19a95b;
  box-shadow: 0 0.8rem 2rem rgba(10, 60, 30, 0.28);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 850;
  transition: transform 200ms var(--ease), background-color 200ms ease;
}

.whatsapp-fab:hover {
  transform: translateY(-0.2rem) scale(1.02);
  background: #128c4a;
}

.whatsapp-fab svg {
  width: 1.45rem;
}

.reveal {
  transform: translateY(1.5rem);
  opacity: 0;
  transition: transform 700ms var(--ease), opacity 700ms ease;
}

.reveal.is-visible {
  transform: none;
  opacity: 1;
}

.services-grid .reveal:nth-child(2),
.team-grid .reveal:nth-child(2),
.reviews-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.services-grid .reveal:nth-child(3),
.team-grid .reveal:nth-child(3),
.reviews-grid .reveal:nth-child(3) {
  transition-delay: 160ms;
}

.load-error {
  display: grid;
  min-height: 100vh;
  padding: 2rem;
  place-content: center;
  justify-items: start;
  gap: 1rem;
}

.load-error img {
  border-radius: 50%;
}

.load-error h1 {
  font-size: clamp(2rem, 5vw, 4rem);
}

.load-error p {
  color: var(--muted);
}

@media (max-width: 1120px) {
  .main-nav {
    gap: 1rem;
  }

  .main-nav a {
    font-size: 0.68rem;
  }

  .header-cta {
    display: none;
  }

  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .service-card--featured {
    grid-column: span 2;
  }

  .about-intro {
    grid-template-columns: 0.7fr 1.3fr;
  }

  .about-area {
    grid-column: 2;
  }

  .project-card__copy {
    grid-template-columns: 1fr 1fr;
  }

  .project-card__cta {
    grid-column: 2;
  }
}

@media (max-width: 820px) {
  :root {
    --shell: min(100% - 2rem, 46rem);
    --header-height: 4.7rem;
  }

  .brand img {
    width: 2.6rem;
    height: 2.6rem;
  }

  .main-nav {
    position: fixed;
    z-index: -1;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 2.5rem 1rem 7rem;
    transform: translateY(-1rem);
    visibility: hidden;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    background: var(--paper);
    color: var(--ink);
    opacity: 0;
    transition: transform 260ms var(--ease), opacity 220ms ease, visibility 220ms ease;
  }

  .main-nav.is-open {
    transform: none;
    visibility: visible;
    opacity: 1;
  }

  .main-nav a {
    width: 100%;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.4rem, 7vw, 2.6rem);
    font-weight: 820;
    letter-spacing: -0.04em;
    text-transform: none;
  }

  .main-nav a::after {
    display: none;
  }

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

  .site-header:has(.main-nav.is-open) {
    background: var(--paper);
    color: var(--ink);
  }

  .hero {
    min-height: max(43rem, 100svh);
  }

  .hero__media {
    background-position: 62% center;
  }

  .hero__veil {
    background: linear-gradient(90deg, rgba(12, 15, 15, 0.9), rgba(12, 15, 15, 0.35)), linear-gradient(0deg, rgba(12, 15, 15, 0.9), transparent 52%);
  }

  .hero__content {
    padding-bottom: 12rem;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 13vw, 6.4rem);
  }

  .hero__scroll {
    display: none;
  }

  .hero__facts {
    width: 100%;
  }

  .hero__facts div:first-child {
    border-left: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .section-heading h2,
  .about h2,
  .contact h2 {
    font-size: clamp(2.65rem, 10vw, 4.8rem);
  }

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

  .service-card,
  .service-card--featured {
    min-height: 20rem;
  }

  .project-card__visuals {
    height: 26rem;
  }

  .project-card__copy {
    grid-template-columns: 1fr;
  }

  .project-card__cta {
    grid-column: 1;
  }

  .gallery-grid {
    grid-auto-rows: 11rem;
    grid-template-columns: repeat(6, 1fr);
  }

  .gallery-item--1,
  .gallery-item--6 {
    grid-column: span 4;
  }

  .gallery-item--2,
  .gallery-item--5 {
    grid-column: span 3;
  }

  .gallery-item--3,
  .gallery-item--4 {
    grid-column: span 2;
  }

  .about-intro {
    grid-template-columns: 1fr;
  }

  .about-area {
    grid-column: auto;
  }

  .team-grid,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .team-grid {
    max-width: 34rem;
    margin-inline: auto;
  }

  .team-card {
    display: grid;
    grid-template-columns: minmax(8rem, 0.8fr) 1.2fr;
  }

  .team-card__photo {
    aspect-ratio: auto;
  }

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

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

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 1.25rem);
  }

  .brand span {
    display: none;
  }

  .header-inner {
    gap: 0.5rem;
  }

  .hero__content {
    padding-top: calc(var(--header-height) + 2rem);
    padding-bottom: 12rem;
  }

  .hero h1 {
    max-width: 8ch;
    font-size: clamp(3.2rem, 16vw, 5.2rem);
  }

  .hero__intro {
    font-size: 1rem;
  }

  .hero__facts div {
    padding: 1rem 0.7rem;
  }

  .hero__facts strong {
    font-size: 0.8rem;
  }

  .hero__facts span {
    font-size: 0.56rem;
  }

  .hero__actions .button {
    width: 100%;
  }

  .section {
    padding-block: 5.5rem;
  }

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

  .service-card--featured {
    grid-column: span 1;
  }

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

  .project-card {
    border-radius: 1.1rem;
  }

  .project-card__visuals {
    height: 18rem;
    padding: 0.5rem 0.5rem 0;
    gap: 0.35rem;
  }

  .project-card__image {
    border-radius: 0.75rem;
  }

  .project-card__content {
    padding: 1.2rem;
  }

  .project-card__meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }

  .project-card__copy {
    gap: 0.9rem;
  }

  .project-card__description {
    font-size: 0.82rem;
  }

  .image-label {
    top: 0.5rem;
    left: 0.5rem;
  }

  .image-label--after {
    right: 0.5rem;
    left: auto;
  }

  .gallery-grid {
    display: flex;
    width: calc(100vw - 0.625rem);
    margin-right: calc(50% - 50vw);
    padding-right: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .gallery-grid::-webkit-scrollbar {
    display: none;
  }

  .gallery-item,
  .gallery-item--1,
  .gallery-item--2,
  .gallery-item--3,
  .gallery-item--4,
  .gallery-item--5,
  .gallery-item--6 {
    width: min(82vw, 21rem);
    height: 28rem;
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .team-card {
    grid-template-columns: 1fr;
  }

  .team-card__photo {
    aspect-ratio: 16 / 10;
  }

  .form-row,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: auto;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.5rem;
  }

  .comparison {
    height: 45dvh;
    min-height: 19rem;
  }

  .comparison__before img {
    width: calc(100vw - 2rem);
  }

  .comparison__label--after {
    right: 1rem;
    top: 4.6rem;
  }

  .whatsapp-fab {
    right: 0.75rem;
    bottom: 4.4rem;
    width: 3.25rem;
    padding: 0;
    justify-content: center;
  }

  .whatsapp-fab span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
