/* ==========================================================================
   Ixit — Landing shell
   Primario #0A1628 · Secundario #2F4A6E · Acento #A8B0B8
   Neutro claro #F4F6F8 · Neutro oscuro #1C1F24
   ========================================================================== */

:root {
  --navy: #0a1628;
  --steel: #2f4a6e;
  --lunar: #a8b0b8;
  --off: #f4f6f8;
  --carbon: #1c1f24;

  --text: #f4f6f8;
  --text-muted: rgba(244, 246, 248, 0.72);
  --text-soft: rgba(168, 176, 184, 0.9);
  --line: rgba(168, 176, 184, 0.28);
  --surface: rgba(47, 74, 110, 0.18);
  --surface-strong: rgba(47, 74, 110, 0.35);

  --font-display: "Libre Baskerville", "Times New Roman", Times, serif;
  --font-body: "Source Serif 4", "Times New Roman", Times, serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.75rem;
  --space-lg: 3.5rem;
  --space-xl: 6rem;
  --space-2xl: 9rem;

  --container: min(1120px, calc(100% - 3rem));
  --narrow: min(680px, 100%);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 2px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  max-width: 14ch;
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  max-width: 16ch;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.container.narrow {
  width: var(--narrow);
  text-align: center;
  margin-inline: auto;
}

/* --------------------------------------------------------------------------
   Geometric atmosphere
   -------------------------------------------------------------------------- */

.geo-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.geo {
  position: absolute;
  display: block;
  opacity: 0.55;
  will-change: transform;
}

.geo-ring {
  border: 1px solid rgba(168, 176, 184, 0.22);
  border-radius: 50%;
}

.geo-ring-a {
  width: min(52vw, 520px);
  aspect-ratio: 1;
  top: 8%;
  right: -8%;
}

.geo-ring-b {
  width: min(34vw, 340px);
  aspect-ratio: 1;
  bottom: 18%;
  left: -6%;
  border-color: rgba(47, 74, 110, 0.55);
}

.geo-line {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(168, 176, 184, 0.35), transparent);
}

.geo-line-a {
  width: 42vw;
  top: 28%;
  left: 8%;
  transform: rotate(-18deg);
}

.geo-line-b {
  width: 30vw;
  bottom: 30%;
  right: 10%;
  transform: rotate(24deg);
}

.geo-square {
  border: 1px solid rgba(168, 176, 184, 0.18);
}

.geo-square-a {
  width: 120px;
  height: 120px;
  top: 62%;
  right: 18%;
  transform: rotate(18deg);
}

.geo-square-b {
  width: 70px;
  height: 70px;
  top: 16%;
  left: 14%;
  transform: rotate(-12deg);
  border-color: rgba(47, 74, 110, 0.65);
}

.geo-dot-grid {
  width: 180px;
  height: 180px;
  bottom: 8%;
  right: 6%;
  background-image: radial-gradient(rgba(168, 176, 184, 0.35) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.35;
}

/* --------------------------------------------------------------------------
   Header / Nav
   -------------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(10, 22, 40, 0.86);
  border-bottom-color: var(--line);
  backdrop-filter: blur(12px);
}

.nav {
  width: var(--container);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}

.brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.25s var(--ease);
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--off);
}

.nav-cta {
  padding: 0.55rem 1rem;
  border: 1px solid var(--line);
  color: var(--off) !important;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--surface-strong);
  border-color: var(--lunar);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 1.4rem;
  height: 1px;
  margin: 0.4rem auto;
  background: var(--off);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.45rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.45rem) rotate(-45deg);
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}

.btn-primary {
  background: var(--off);
  color: var(--navy);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--lunar);
  transform: translateY(-1px);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--off);
  background: transparent;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  border-color: var(--lunar);
  background: var(--surface);
}

/* --------------------------------------------------------------------------
   Hero — full-bleed, brand-first
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 1.5rem) 0 5.5rem;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10, 22, 40, 0.35) 0%, rgba(10, 22, 40, 0.72) 48%, rgba(10, 22, 40, 0.96) 100%),
    linear-gradient(115deg, rgba(47, 74, 110, 0.45) 0%, transparent 42%),
    radial-gradient(ellipse 80% 60% at 70% 40%, rgba(47, 74, 110, 0.55), transparent 60%),
    linear-gradient(160deg, #0a1628 0%, #13233a 45%, #1c1f24 100%);
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 12% 8% auto auto;
  width: min(48vw, 520px);
  aspect-ratio: 1.15 / 1;
  border: 1px solid rgba(168, 176, 184, 0.18);
  background:
    linear-gradient(135deg, rgba(168, 176, 184, 0.08), transparent 55%),
    repeating-linear-gradient(
      -35deg,
      transparent,
      transparent 18px,
      rgba(168, 176, 184, 0.06) 18px,
      rgba(168, 176, 184, 0.06) 19px
    );
  transform: rotate(-8deg);
  animation: plane-drift 18s var(--ease) infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  left: 8%;
  bottom: 18%;
  border: 1px solid rgba(168, 176, 184, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 0 40px rgba(47, 74, 110, 0.08);
  animation: ring-pulse 12s var(--ease) infinite alternate;
}

.hero-content {
  width: var(--container);
  margin-inline: auto;
  padding-bottom: 2rem;
}

.brand-mark {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8.5vw, 6.25rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
  color: var(--off);
  margin-bottom: 1rem;
  opacity: 0;
  animation: rise-in 1.1s var(--ease) 0.1s forwards;
}

.hero h1 {
  font-size: clamp(1.65rem, 3.4vw, 2.55rem);
  max-width: 18ch;
  color: var(--lunar);
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: rise-in 1.1s var(--ease) 0.25s forwards;
}

.lede {
  max-width: 36ch;
  color: var(--text-muted);
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: rise-in 1.1s var(--ease) 0.4s forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: rise-in 1.1s var(--ease) 0.55s forwards;
}

.scroll-hint {
  position: absolute;
  right: max(1.5rem, calc((100% - min(1120px, calc(100% - 3rem))) / 2));
  bottom: 2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.scroll-hint::after {
  content: "";
  width: 1px;
  height: 2.5rem;
  background: linear-gradient(180deg, var(--lunar), transparent);
  animation: scroll-line 1.8s var(--ease) infinite;
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

.section {
  position: relative;
  z-index: 1;
  padding: var(--space-2xl) 0;
}

.section-head {
  margin-bottom: var(--space-lg);
}

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lunar);
  margin-bottom: 0.85rem;
}

.section-text {
  margin-top: 1rem;
  color: var(--text-muted);
  max-width: 42ch;
}

.approach,
.trust {
  background: linear-gradient(180deg, transparent, rgba(28, 31, 36, 0.45), transparent);
}

.approach .section-text,
.trust .section-text {
  margin-inline: auto;
}

/* Services — editorial list, not cards */

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.service-item h3,
.service-item p {
  grid-column: 2;
}

.service-index {
  font-family: var(--font-display);
  color: var(--steel);
  font-size: 1rem;
}

.service-item p {
  color: var(--text-muted);
  max-width: 40ch;
}

/* Portfolio */

.portfolio {
  background:
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(47, 74, 110, 0.28), transparent 55%),
    transparent;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.work {
  grid-column: span 4;
  display: grid;
  gap: 1rem;
}

.work:first-child {
  grid-column: span 7;
}

.work:nth-child(2) {
  grid-column: span 5;
}

.work:nth-child(3) {
  grid-column: 3 / span 8;
}

.work-visual {
  min-height: 280px;
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  background: var(--carbon);
  transition: border-color 0.35s var(--ease), transform 0.45s var(--ease);
}

.work:hover .work-visual,
.work:focus-within .work-visual {
  border-color: var(--lunar);
  transform: translateY(-4px);
}

.work-visual::before,
.work-visual::after {
  content: "";
  position: absolute;
}

.work-visual-a {
  background:
    linear-gradient(145deg, rgba(47, 74, 110, 0.55), rgba(10, 22, 40, 0.2)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(168, 176, 184, 0.06) 28px 29px);
}

.work-visual-a::before {
  inset: 18% 12% 22% 28%;
  border: 1px solid rgba(168, 176, 184, 0.28);
  background: rgba(244, 246, 248, 0.03);
}

.work-visual-b {
  background:
    radial-gradient(circle at 30% 30%, rgba(168, 176, 184, 0.18), transparent 40%),
    linear-gradient(200deg, #1c1f24, #0a1628);
}

.work-visual-b::before {
  width: 55%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(168, 176, 184, 0.25);
  top: 20%;
  right: 12%;
}

.work-visual-c {
  background:
    linear-gradient(120deg, rgba(47, 74, 110, 0.4), transparent 50%),
    linear-gradient(#0a1628, #1c1f24);
}

.work-visual-c::before {
  inset: auto 10% 18% 10%;
  height: 42%;
  border-top: 1px solid rgba(168, 176, 184, 0.25);
  background: repeating-linear-gradient(
    180deg,
    rgba(168, 176, 184, 0.08) 0 1px,
    transparent 1px 18px
  );
}

.work-meta h3 {
  margin-bottom: 0.25rem;
}

.work-meta p {
  color: var(--text-soft);
  font-size: 0.98rem;
}

/* Process */

.process-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: none;
}

.process-step {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.process-num {
  display: block;
  font-family: var(--font-display);
  color: var(--steel);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.process-step p {
  margin-top: 0.65rem;
  color: var(--text-muted);
  max-width: 22ch;
}

/* Pricing / packages */

.pricing {
  background:
    radial-gradient(ellipse 45% 50% at 0% 80%, rgba(47, 74, 110, 0.22), transparent 55%),
    transparent;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.75rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(28, 31, 36, 0.28);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}

.plan:hover {
  border-color: rgba(168, 176, 184, 0.45);
  transform: translateY(-3px);
}

.plan-featured {
  background: rgba(47, 74, 110, 0.28);
  border-color: rgba(168, 176, 184, 0.45);
}

.plan-label {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--lunar);
}

.plan-name {
  font-size: clamp(1.5rem, 2.4vw, 1.85rem);
}

.plan-price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  line-height: 1;
  color: var(--off);
  margin: 0.35rem 0 0;
}

.plan-price span {
  letter-spacing: 0.04em;
}

.plan-note {
  color: var(--text-muted);
  font-size: 0.98rem;
  max-width: 24ch;
}

.plan-features {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  flex: 1;
}

.plan-features li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--steel);
}

.plan .btn {
  align-self: flex-start;
  margin-top: auto;
}

/* Trust */

.trust-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
  margin-top: 2rem;
  color: var(--lunar);
  font-size: 0.98rem;
}

.trust-points li {
  position: relative;
  padding-left: 1rem;
}

.trust-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  background: var(--steel);
}

/* Contact */

.contact {
  padding-bottom: calc(var(--space-2xl) - 1rem);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact-mail {
  display: inline-block;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--lunar);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}

.contact-mail:hover,
.contact-mail:focus-visible {
  color: var(--off);
  border-bottom-color: var(--lunar);
}

.contact-form {
  display: grid;
  gap: 1.1rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  background: rgba(28, 31, 36, 0.35);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
}

.contact-form span {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 0.75rem 0;
  outline: none;
  resize: vertical;
  transition: border-color 0.25s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: var(--lunar);
}

.contact-form .btn {
  margin-top: 0.5rem;
  justify-self: start;
}

/* Footer */

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 1.75rem 0;
  background: rgba(28, 31, 36, 0.55);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--text-soft);
  font-size: 0.92rem;
}

.to-top {
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.to-top:hover,
.to-top:focus-visible {
  color: var(--off);
  border-bottom-color: var(--lunar);
}

/* --------------------------------------------------------------------------
   Scroll reveal
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes scroll-line {
  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.8;
  }
  50% {
    transform: scaleY(0.55);
    opacity: 0.35;
  }
}

@keyframes plane-drift {
  from {
    transform: rotate(-8deg) translate3d(0, 0, 0);
  }
  to {
    transform: rotate(-5deg) translate3d(-12px, 18px, 0);
  }
}

@keyframes ring-pulse {
  from {
    transform: scale(1);
    opacity: 0.7;
  }
  to {
    transform: scale(1.08);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .brand-mark,
  .hero h1,
  .lede,
  .hero-actions,
  .hero-media::before,
  .hero-media::after,
  .scroll-hint::after {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 960px) {
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }

  .work,
  .work:first-child,
  .work:nth-child(2),
  .work:nth-child(3) {
    grid-column: auto;
  }

  .process-track {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .plan-featured {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  :root {
    --container: min(1120px, calc(100% - 2rem));
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: grid;
    gap: 0;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(10, 22, 40, 0.96);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }

  .nav-menu.is-open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu li {
    border-bottom: 1px solid rgba(168, 176, 184, 0.12);
  }

  .nav-menu a {
    display: block;
    padding: 0.95rem 0;
  }

  .nav-cta {
    border: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .hero {
    place-items: center start;
    padding-bottom: 5rem;
  }

  .scroll-hint {
    right: 1.25rem;
  }

  .service-item {
    grid-template-columns: 3rem 1fr;
  }

  .portfolio-grid,
  .process-track {
    grid-template-columns: 1fr;
  }

  .work-visual {
    min-height: 220px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
