:root {
  --navy: #021d3e;
  --background: #010f22;
  --red: #ba1c20;
  --white: #fff;
  --line: rgba(255, 255, 255, 0.32);
  --muted: rgba(255, 255, 255, .72);
  --page-gutter: clamp(1.5rem, 6vw, 7rem);
  --section-space: clamp(4rem, 8vw, 8rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--white);
  font-family: "DM Sans", Arial, sans-serif;
}

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

:where(a, button, input, textarea):focus-visible { outline: 2px solid var(--white); outline-offset: 5px; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
section[id] { scroll-margin-top: 2rem; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: 1rem; background: var(--navy); transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

.home {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(1.5rem, 6vw, 7rem);
  background: var(--navy);
}

.backdrop {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image: url("assets/images/background-home.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
  animation: settle 1.4s ease-out both;
}

.backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0, 5, 14, .3), rgba(0, 5, 14, .3)),
    linear-gradient(90deg, rgba(2, 29, 62, 0.95) 0%, rgba(2, 29, 62, 0.79) 30%, rgba(2, 29, 62, 0.28) 67%, rgba(2, 29, 62, 0.12) 100%),
    linear-gradient(0deg, rgba(2, 29, 62, 0.68) 0%, transparent 38%, rgba(2, 29, 62, 0.2) 100%);
}

.site-header {
  width: 100%;
  min-height: 8.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(1.55rem, 2.15vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.09em;
}

.brand span { color: var(--red); }

.navigation { display: flex; align-items: center; gap: clamp(1.25rem, 2.8vw, 3.2rem); }

.navigation a {
  position: relative;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.065em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.65rem;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--red);
  transition: transform 180ms ease;
}

.navigation a:hover, .navigation a.active { color: #fff; }
.navigation a:hover::after, .navigation a.active::after { transform: scaleX(1); }

.hero {
  width: 100%;
  max-width: 49rem;
  margin: auto 0;
  padding: 4.5rem 0 5.8rem;
  animation: rise 800ms 180ms ease-out both;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.65rem;
  color: rgba(255,255,255,.82);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow span { width: 2.4rem; height: 2px; background: var(--red); }

h1 {
  max-width: 44rem;
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(3.25rem, 6.55vw, 6.9rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: .94;
}

h1 em { color: #e54246; font-style: normal; }

.hero-copy {
  max-width: 27rem;
  margin: 2rem 0 2.2rem;
  color: rgba(255,255,255,.84);
  font-size: clamp(.94rem, 1.15vw, 1.08rem);
  line-height: 1.65;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.06rem 1.35rem;
  background: var(--red);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background 180ms ease, transform 180ms ease;
}

.cta:hover { background: #d22d32; transform: translateY(-2px); }
.cta b { font-size: 1.2rem; line-height: .5; font-weight: 400; }

.hero-bottom {
  width: 100%;
  min-height: 6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid var(--line);
  color: rgba(255,255,255,.75);
  font-size: .76rem;
  letter-spacing: .035em;
}

.hero-bottom p { margin: 0; }
.hero-bottom a { color: #fff; font-weight: 700; text-transform: uppercase; font-size: .7rem; letter-spacing: .1em; }
.hero-bottom a span { color: var(--red); margin-left: .5rem; font-size: 1rem; }

.side-label {
  position: absolute;
  top: 50%;
  right: 1.5rem;
  transform: rotate(90deg) translateX(50%);
  transform-origin: right top;
  color: rgba(255,255,255,.5);
  font-size: .58rem;
  letter-spacing: .24em;
  white-space: nowrap;
}

.page-index {
  position: absolute;
  right: clamp(1.5rem, 6vw, 7rem);
  bottom: 8.7rem;
  display: flex;
  align-items: center;
  gap: .55rem;
  color: rgba(255,255,255,.62);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.page-index span:first-child { color: #fff; }
.page-index i { width: 2rem; height: 1px; background: var(--red); }

.menu-toggle { display: none; }

@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1.015); } }

@media (max-width: 720px) {
  .home { padding: 0 1.45rem; min-height: 100dvh; }
  .site-header { min-height: 5.8rem; }
  .menu-toggle {
    display: grid;
    gap: .32rem;
    width: 2.5rem;
    height: 2.5rem;
    place-content: center;
    padding: 0;
    border: 1px solid rgba(255,255,255,.45);
    background: transparent;
  }
  .menu-toggle span { width: 1.08rem; height: 1px; background: white; transition: transform .2s ease; }
  .navigation {
    position: absolute;
    z-index: 2;
    top: 5.8rem;
    right: 1.45rem;
    left: 1.45rem;
    display: none;
    padding: 1.2rem;
    background: rgba(2, 29, 62, .97);
    border: 1px solid rgba(255,255,255,.18);
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
  }
  .navigation.open { display: flex; }
  .navigation a::after { display: none; }
  .hero { padding: 4rem 0 3.2rem; margin: auto 0; }
  h1 { font-size: clamp(3.1rem, 14vw, 4.55rem); }
  .hero-copy { margin: 1.55rem 0 2rem; max-width: 22rem; }
  .hero-bottom { min-height: 5.5rem; }
  .hero-bottom p { max-width: 14.5rem; line-height: 1.4; }
  .side-label, .page-index { display: none; }
  .backdrop { background-position: 60% center; }
  .backdrop::after { background: linear-gradient(rgba(0,5,14,.3), rgba(0,5,14,.3)), linear-gradient(90deg, rgba(2,29,62,.94), rgba(2,29,62,.57)), linear-gradient(0deg, rgba(2,29,62,.7), transparent 65%); }
}

.projects-section {
  padding: clamp(3.5rem, 8vw, 7rem) clamp(1.5rem, 6vw, 7rem);
  scroll-margin-top: 2rem;
  background: var(--background);
}

.brand-dot { color: var(--red); }
.projects-section > h2 { margin: 0; font-family: "Manrope", Arial, sans-serif; font-weight: 700; letter-spacing: -.075em; font-size: clamp(2.8rem, 5.5vw, 5.5rem); line-height: 1.1; }
.projects-intro { max-width: 35rem; margin: 1.5rem 0 3rem; color: rgba(255,255,255,.7); line-height: 1.7; }
.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 2rem); }

.project-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 2px solid rgba(255,255,255,.16);
  background: var(--navy);
  transition: border-color 250ms ease;
}

.project-preview {
  position: absolute;
  inset: -12px;
  display: grid;
  place-items: center;
  background: #000;
  transition: filter 300ms ease, transform 400ms ease;
}

.project-preview h3 {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 1rem;
  font-family: "Manrope", Arial, sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -.055em;
  color: #fff;
  background: linear-gradient(110deg, #fff 20%, #a5b8d2 65%, #dc7376);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.particle-wave {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* Indre cover only: original grid and neighbouring cards are unchanged. */
.indre-card {
  --cover-background: #38223f;
  --cover-ink: #fff;
  --cover-light: 1;
  --cover-dark: 0;
  --cover-reveal: 0;
  --cover-rise: 6px;
  --cover-line: .24;
  --cover-lift: 0px;
  --cover-ease: cubic-bezier(.22,.61,.36,1);
  background: var(--cover-background);
  color: var(--cover-ink);
  transform: translateY(var(--cover-lift));
  transition: background-color 600ms var(--cover-ease), color 600ms ease, transform 600ms var(--cover-ease);
}
.project-card.indre-card:is(:hover, :focus-within) { border-color: rgba(255,255,255,.16); }
.indre-card-link { display: block; position: relative; height: 100%; cursor: pointer; }
.indre-card-link:focus-visible { outline: 2px solid currentColor; outline-offset: -8px; }
.indre-card-art { display: flex; flex-direction: column; justify-content: space-between; height: 100%; padding: clamp(1.25rem, 2.5vw, 2.8rem); }
.indre-card-category { font-size: .65rem; line-height: 1.5; text-transform: uppercase; letter-spacing: .18em; }
.indre-card-mark { position: absolute; top: 38%; left: 50%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); }
.indre-card-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity 600ms var(--cover-ease); }
.indre-card-logo-light { opacity: var(--cover-light); }
.indre-card-logo-dark { opacity: var(--cover-dark); }
.indre-card-bottom { margin-top: auto; }
.indre-card-quote { margin: 0 0 clamp(.75rem, 1.3vw, 1.25rem); font-size: clamp(.6rem, .85vw, .78rem); line-height: 1.6; opacity: var(--cover-reveal); transform: translateY(var(--cover-rise)); transition: opacity 500ms ease, transform 600ms var(--cover-ease); }
.indre-card-rule { display: block; width: 100%; height: 1px; margin-bottom: clamp(.75rem, 1.3vw, 1.25rem); background: currentColor; opacity: .32; transform: scaleX(var(--cover-line)); transform-origin: left; transition: transform 600ms var(--cover-ease); }
.indre-card-caption { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; }
.indre-card-caption h3 { margin: 0; font: 400 clamp(1.35rem, 2.2vw, 2.2rem)/1.15 Georgia, serif; letter-spacing: -.03em; }
.indre-card-caption > span { font-size: 1.15rem; line-height: 1; }
.indre-card-meta { margin: .5rem 0 0; font-size: clamp(.6rem, .8vw, .75rem); line-height: 1.5; letter-spacing: .04em; }
.indre-card:has(.indre-card-link:focus-visible) {
  --cover-background: #c2b1a8;
  --cover-ink: #151515;
  --cover-light: 0;
  --cover-dark: 1;
  --cover-reveal: 1;
  --cover-rise: 0px;
  --cover-line: 1;
  --cover-lift: -6px;
}
@media (hover: hover) and (pointer: fine) {
  .indre-card:hover {
    --cover-background: #c2b1a8;
    --cover-ink: #151515;
    --cover-light: 0;
    --cover-dark: 1;
    --cover-reveal: 1;
    --cover-rise: 0px;
    --cover-line: 1;
    --cover-lift: -6px;
  }
}
@media (max-width: 1000px) and (min-width: 721px) {
  .indre-card-art { padding: 1rem; }
  .indre-card-category { font-size: .55rem; }
  .indre-card-mark { top: 32%; width: 30%; }
  .indre-card-quote { margin-bottom: .5rem; font-size: .58rem; }
  .indre-card-rule { margin-bottom: .6rem; }
  .indre-card-caption h3 { font-size: 1.25rem; }
}
@media (max-width: 720px) {
  .indre-card-mark { top: 33%; width: 27%; }
  .indre-card-caption h3 { font-size: clamp(1.5rem, 5vw, 2rem); }
  .indre-card-quote { display: none; }
  .indre-card-meta { font-size: .65rem; }
}
.project-button {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, calc(-50% + 10px));
  opacity: 0;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.35rem;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font: 600 .85rem "DM Sans", Arial, sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: opacity 250ms ease, transform 250ms ease, background 250ms ease;
}

.project-card:hover, .project-card:focus-within { border-color: var(--red); }
.project-card:hover .project-preview, .project-card:focus-within .project-preview { filter: blur(7px); transform: scale(1.04); }
.project-card:hover .project-button, .project-card:focus-within .project-button { opacity: 1; pointer-events: auto; transform: translate(-50%, -50%); }
.project-button:hover { background: #9d171b; }
.project-button:focus-visible, .project-notice button:focus-visible { outline: 2px solid white; outline-offset: 5px; }
.project-notice { width: min(28rem, calc(100% - 3rem)); padding: 2rem; background: var(--navy); color: #fff; border: 1px solid var(--red); }
.project-notice::backdrop { background: rgba(0,10,25,.8); backdrop-filter: blur(5px); }
.project-notice h2 { margin-top: 0; font-family: "Manrope", Arial, sans-serif; }
.project-notice p { color: rgba(255,255,255,.75); line-height: 1.6; }
.project-notice .cta { margin-top: 1rem; border: 0; color: #fff; cursor: pointer; }

@media (max-width: 720px) {
  .projects-section { padding-inline: 1.45rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { aspect-ratio: 4 / 3; }
  .project-preview h3 { font-size: clamp(1.8rem, 7vw, 3rem); }
}

@media (hover: none) {
  .project-button { top: auto; bottom: 1.25rem; opacity: 1; pointer-events: auto; transform: translateX(-50%); }
  .project-card:hover .project-button, .project-card:focus-within .project-button { transform: translateX(-50%); }
}

/* Shared editorial layout */
.content-section { padding: var(--section-space) var(--page-gutter); border-top: 1px solid rgba(255,255,255,.12); }
.editorial-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 7vw, 8rem); }
.editorial-layout > * { min-width: 0; }
.section-title { margin: 0; font-family: "Manrope", Arial, sans-serif; font-size: clamp(2.3rem, 4.2vw, 4.5rem); font-weight: 600; line-height: 1.08; letter-spacing: -.06em; overflow-wrap: break-word; }
.section-copy { max-width: 34rem; color: var(--muted); font-size: 1rem; line-height: 1.8; margin: 1.5rem 0 0; }
.section-heading > .section-copy { max-width: 27rem; }
.text-link { display: inline-flex; align-items: center; gap: 1.5rem; min-height: 44px; margin-top: 1.5rem; border-bottom: 1px solid var(--red); font-size: .9rem; }
.text-link span { color: var(--red); transition: transform 180ms ease; }
.text-link:hover span { transform: translate(2px, -2px); }

/* Services: numbered rows */
.service-list, .process-list { list-style: none; margin: 0; padding: 0; }
.service-list li { display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.service-list li:first-child { padding-top: 0; border-top: 0; }
.item-number { padding-top: .25rem; color: #db686b; font-size: .75rem; letter-spacing: .08em; }
.service-list h3, .process-list h3, .difference-list dt { margin: 0; font-family: "Manrope", Arial, sans-serif; font-weight: 600; font-size: clamp(1.1rem, 1.6vw, 1.45rem); letter-spacing: -.03em; line-height: 1.4; }
.service-list p, .process-list p, .difference-list dd { margin: .6rem 0 0; color: var(--muted); font-size: .94rem; line-height: 1.75; }
.future-note { display: flex; align-items: baseline; gap: 2rem; margin: 2.5rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1.7; }
.future-note .eyebrow { flex-shrink: 0; margin: 0; }

/* Process: connected steps */
.process-section { background: var(--navy); }
.process-list { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 3.5rem; }
.process-list li { position: relative; border-top: 1px solid var(--line); padding: 1.8rem 1.5rem 0 0; }
.process-list li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--red); }
.step-number { display: block; margin-bottom: 1.75rem; color: rgba(255,255,255,.55); font-size: .75rem; letter-spacing: .12em; }
.process-list h3 { font-size: clamp(.95rem, 1.4vw, 1.25rem); overflow-wrap: break-word; }
.process-list p { font-size: .87rem; }

/* About and concrete differentiators */
.about-layout { align-items: start; }
.about-lead { margin: 0; font-family: "Manrope", Arial, sans-serif; font-size: clamp(1.3rem, 2.1vw, 2rem); line-height: 1.5; letter-spacing: -.035em; }
.difference-list { margin: 0; }
.difference-list > div { position: relative; padding: 1.6rem 0 1.6rem 1.5rem; border-top: 1px solid var(--line); }
.difference-list > div::before { content: ""; position: absolute; top: 2.1rem; left: 0; width: 5px; height: 5px; background: var(--red); }
.difference-list > div:first-child { border-top: 0; padding-top: 0; }
.difference-list > div:first-child::before { top: .55rem; }

/* Contact invitation */
.contact-cta { padding-block: clamp(5rem, 12vw, 12rem); background: var(--navy); }
.contact-cta .section-title { font-size: clamp(3rem, 7.5vw, 8rem); }
.contact-cta .cta { margin-top: 2.5rem; }

/* Contact and integration-ready form */
.contact-channels { margin: 2.5rem 0 1.75rem; }
.contact-channels > div { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-channels dt { font-size: .9rem; }
.contact-channels dd { margin: 0; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.contact-whatsapp { color: var(--white); border: 1px solid var(--line); background: transparent; }
.contact-whatsapp:disabled:hover { background: transparent; transform: none; }
.field-note { color: var(--muted); font-size: .78rem; line-height: 1.6; }
.form-note { margin: 0 0 2rem; color: var(--muted); font-size: .85rem; line-height: 1.7; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.form-field { display: flex; flex-direction: column; min-width: 0; margin-bottom: 1.75rem; }
.form-field label { margin-bottom: .7rem; font-size: .85rem; }
.form-field label span { color: var(--muted); font-size: .73rem; }
.form-field input, .form-field textarea { width: 100%; min-width: 0; border: 1px solid var(--line); border-radius: 0; padding: .85rem 1rem; background: rgba(255,255,255,.025); color: var(--white); font-size: 1rem; line-height: 1.5; transition: border-color 180ms ease; }
.form-field textarea { resize: vertical; min-height: 9rem; }
.form-field input:hover, .form-field textarea:hover { border-color: rgba(255,255,255,.65); }
.contact-form .cta { border: 0; color: var(--white); }
.form-status { min-height: 1.5rem; margin: 1rem 0 0; color: var(--muted); font-size: .85rem; line-height: 1.7; }

/* Compact footer */
.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.25rem 2rem; margin: 0 var(--page-gutter); padding: 1.75rem 0; border-top: 1px solid var(--line); }
.site-footer .brand { font-size: 1.5rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: .8rem; }
.site-footer nav a:hover { color: var(--white); }
.site-footer p { margin: 0; color: var(--muted); font-size: .75rem; }

/* Reveal is opt-in: content remains visible without JavaScript. */
[data-reveal] { transition: opacity 400ms ease, transform 400ms ease; }
.reveal-pending { opacity: 0; transform: translateY(14px); }

@media (max-width: 1000px) {
  .editorial-layout { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2.5rem; }
  .process-list { grid-template-columns: 1fr; }
  .process-list li { display: grid; grid-template-columns: 2.5rem minmax(8rem, .7fr) minmax(0, 1fr); gap: 1.25rem; padding: 0 0 2rem 1.5rem; border-top: 0; border-left: 1px solid var(--line); }
  .process-list li::before { top: .45rem; left: -4px; }
  .process-list li:last-child { padding-bottom: 0; }
  .step-number { margin: .3rem 0 0; }
  .process-list p { margin: 0; }
}

@media (max-width: 720px) {
  :root { --page-gutter: 1.45rem; }
  .editorial-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .section-title { font-size: clamp(2.25rem, 9vw, 3.5rem); }
  .future-note { flex-direction: column; gap: .75rem; }
  .process-list li { grid-template-columns: 2rem minmax(0, 1fr); gap: .4rem 1rem; }
  .process-list p { grid-column: 2; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-form .cta { width: 100%; justify-content: space-between; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .navigation a { display: flex; align-items: center; min-height: 44px; width: 100%; }
  .navigation { gap: .25rem; }
  .menu-toggle { min-width: 44px; min-height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
  .reveal-pending { opacity: 1; transform: none; }
}
