@charset "UTF-8";

/* Home layout follows the approved three visual compositions. Case pages keep styles.css. */
.home-page {
  --home-font: "Avenir Next", Manrope, "Segoe UI", ui-sans-serif, sans-serif;
  --home-text: #f5f8fa;
  --home-cyan: #3bd5e8;
  --home-blue: #91d9f1;
  font-family: var(--home-font);
  color: var(--home-text);
}
.home-page .container { width: min(calc(100% - 10.8vw), 1420px); }
.home-page .site-header { position: absolute; z-index: 20; inset: 0 0 auto; border: 0; }
.home-page .nav-shell { min-height: 88px; }
.home-page .brand { font-size: 2rem; font-weight: 700; letter-spacing: -.025em; }
.home-page .main-nav { gap: clamp(22px, 2.8vw, 42px); }
.home-page .main-nav a { font-size: .94rem; color: #e3ebf0; white-space: nowrap; }
.home-page .main-nav a[href="#inicio"] { padding-block: 7px; border-bottom: 2px solid var(--home-cyan); color: var(--home-cyan); }

.home-page .top-composition {
  background: radial-gradient(circle at 80% 12%, rgba(28, 83, 119, .27), transparent 34%), #071b2b;
}
.home-page .top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr);
  gap: clamp(28px, 3vw, 48px);
  align-items: start;
  padding-top: 115px;
}
.home-page .top-grid .hero {
  width: 100%;
  max-width: none;
  min-height: 580px;
  margin: 0;
  padding: 0 0 38px;
  display: block;
  position: relative;
  isolation: isolate;
  overflow: visible;
}
.home-page .top-grid .hero::before { content: none; }
.home-page .top-grid .hero-copy { width: 100%; position: relative; z-index: 2; }
.home-page .top-grid .hero-location { margin-bottom: 15px; color: #aebfcb; font-size: .76rem; letter-spacing: .13em; }
.home-page .top-grid .hero-location::after { background: rgba(208, 231, 237, .38); }
.home-page .top-grid .hero-identity { display: grid; grid-template-columns: clamp(170px, 13.8vw, 195px) minmax(0,1fr); gap: clamp(18px, 2vw, 26px); align-items: center; }
.home-page .top-grid .hero h1 { margin: 0; font-size: clamp(3.9rem, 5.45vw, 4.9rem); font-weight: 700; line-height: .97; letter-spacing: -.02em; }
.home-page .top-grid .hero h1 span { color: var(--home-blue); }
.home-page .top-grid .hero-role { max-width: none; margin-top: 19px; font-size: clamp(1.7rem, 2.15vw, 2.12rem); line-height: 1.16; font-weight: 400; }
.home-page .top-grid .hero-intro { max-width: none; margin-top: 30px; padding-left: 15px; border-color: var(--home-cyan); font-size: 1.07rem; line-height: 1.5; }
.home-page .top-grid .hero-thesis { margin: 30px 0 0 18px; font-size: 1.17rem; }
.home-page .top-grid .hero-actions { margin: 35px 0 0 18px; gap: 10px; }
.home-page .top-grid .hero-actions .button { min-height: 40px; min-width: 126px; gap: 8px; padding-inline: 13px; border-radius: 7px; font-size: .82rem; }
.home-page .top-grid .hero-actions .button span { font-size: 1em; }
.home-page .button-primary { background: var(--home-cyan); }
.home-page .button-text { border-color: var(--home-cyan); }
.home-page .top-grid .hero-visual {
  position: relative;
  z-index: 0;
  inset: auto;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: #d5dce5;
  box-shadow: none;
}
.home-page .top-grid .hero-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; filter: none; }
.home-page .top-grid .hero-visual::after { content: none; }

.home-page .top-grid .approach {
  min-width: 0;
  margin: 0;
  padding: 0 0 0 32px;
  border: 0;
  border-left: 1px solid rgba(204, 227, 235, .2);
  background: transparent;
}
.home-page .top-grid .approach-heading { padding: 0; margin-bottom: 21px; }
.home-page .top-grid .approach-heading .section-index { margin: 0 0 9px; font-size: .76rem; }
.home-page .top-grid .approach-heading .section-index::after { width: 56px; }
.home-page .top-grid .approach-heading h2 { margin: 0; font-size: clamp(2.05rem, 2.55vw, 2.5rem); font-weight: 700; line-height: 1.08; }
.home-page .top-grid .approach-heading h2 em { color: var(--home-blue); white-space: normal; }
.home-page .top-grid .principles { display: block; }
.home-page .top-grid .principle,
.home-page .top-grid .principle:nth-child(4),
.home-page .top-grid .principle:nth-child(5) {
  display: grid;
  grid-template-columns: 28px 19px minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
  padding: 13px 0;
  border: 0;
  border-top: 1px solid rgba(204, 227, 235, .18);
}
.home-page .top-grid .principle:first-child { border-top: 0; }
.home-page .top-grid .principle-number { color: var(--home-cyan); font-size: .95rem; line-height: 1.35; }
.home-page .top-grid .principle-icon { width: 19px; height: 19px; color: var(--home-cyan); opacity: .75; }
.home-page .top-grid .principle h3 { margin: 0 0 3px; color: #f5f8fa; font-size: 1.04rem; line-height: 1.27; }
.home-page .top-grid .principle p { max-width: none; margin: 0; color: #c2d0dc; font-size: .97rem; line-height: 1.42; }

.home-page .metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding-top: 18px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(204, 227, 235, .2);
}
.home-page .metric { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 0 18px; border-left: 1px solid rgba(204, 227, 235, .2); }
.home-page .metric:first-child { padding-left: 0; border-left: 0; }
.home-page .metric svg { width: 23px; height: 23px; flex: none; color: var(--home-cyan); opacity: .8; }
.home-page .metric strong { color: #f5f8fa; font-size: 1.65rem; line-height: 1; white-space: nowrap; }
.home-page .metric span { color: #c7d6de; font-size: .9rem; line-height: 1.32; }

.home-page .journey {
  padding: 55px 0 78px;
  border-top: 1px solid rgba(209,230,237,.12);
  background: #061a2b;
}
.home-page .journey .section-heading { display: block; margin-bottom: 44px; }
.home-page .journey .section-index { margin: 0 0 9px; color: #c3d2dc; font-size: .87rem; }
.home-page .journey .section-heading h2 { font-size: clamp(2.65rem, 3.5vw, 3.4rem); font-weight: 700; }
.home-page .timeline { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(26px, 3.2vw, 50px); }
.home-page .timeline::before { display: none; }
.home-page .timeline-item { display: flex; flex-direction: column; min-width: 0; }
.home-page .timeline-meta { order: 0; height: 36px; align-items: flex-start; color: #d7e4ea; font-size: .94rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
.home-page .timeline-meta > span:last-child { padding: 0 0 0 22px; white-space: nowrap; background: #061a2b; }
.home-page .timeline-meta::after { content: ""; flex: 1; height: 1px; min-width: 0; margin: 13px 0 0 14px; background: rgba(197,223,230,.35); }
.home-page .timeline-point { top: 7px; left: 0; width: 13px; height: 13px; border: 0; background: var(--home-cyan); }
.home-page .timeline-image { order: 1; height: clamp(165px, 13vw, 198px); }
.home-page .timeline-image > span { font-size: .6rem; }
.home-page .timeline-item h3 { order: 2; max-width: none; min-height: 2.5em; margin: 10px 0 8px; font-size: clamp(1.25rem, 1.65vw, 1.55rem); line-height: 1.18; }
.home-page .timeline-item h3 span { display: inline; }
.home-page .timeline-item > p:not(.timeline-place) { order: 3; max-width: none; min-height: 8.25em; margin: 0 0 15px; color: #c6d3dc; font-size: 1.0625rem; line-height: 1.5; }
.home-page .timeline-facts { order: 4; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0; min-height: 68px; margin-top: auto; padding-top: 12px; border-top: 1px solid rgba(209,230,237,.26); }
.home-page .timeline-item:not(:nth-child(2)) .timeline-facts { grid-template-columns: repeat(2,minmax(0,1fr)); }
.home-page .timeline-facts span { min-width: 0; padding: 0 10px; border-left: 1px solid rgba(209,230,237,.18); color: #aebfcc; font-size: .77rem; line-height: 1.3; }
.home-page .timeline-facts span:first-child { padding-left: 0; border: 0; }
.home-page .timeline-facts strong { display: block; margin-bottom: 3px; color: #f5f8fa; font-size: 1.02rem; line-height: 1.2; }
.home-page .timeline-place { order: 5; height: 22px; min-height: 22px; margin: 14px 0 0; color: #b9c9d5; font-size: .88rem; line-height: 22px; }
.home-page .timeline-item:last-child::after { content: ""; order: 5; display: block; height: 22px; min-height: 22px; margin-top: 14px; }

.home-page .work {
  padding: 54px 0 61px;
  border-top: 1px solid rgba(209,230,237,.12);
  background: radial-gradient(circle at 90% 0%, rgba(25,91,130,.2), transparent 26%), #071d2e;
}
.home-page .work-heading { display: flex; align-items: baseline; gap: 28px; margin-bottom: 23px; }
.home-page .work-heading .section-index { margin: 0; color: #c3d2dc; font-size: .88rem; }
.home-page .work-heading h2 { margin: 0; font-size: clamp(2.7rem, 3.6vw, 3.55rem); font-weight: 700; line-height: 1.1; }
.home-page .case-composition { display: grid; grid-template-columns: minmax(0, 1.43fr) minmax(0, 1fr); gap: 16px; height: 570px; }
.home-page .case-secondary-stack { display: grid; grid-template-rows: repeat(2,minmax(0,1fr)); gap: 16px; min-height: 0; }
.home-page .portfolio-case { position: relative; min-width: 0; min-height: 0; overflow: hidden; border: 1px solid rgba(75,156,184,.48); border-radius: 6px; background: #092437; }
.home-page .case-card-content { position: relative; z-index: 2; }
.home-page .case-number { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; color: #f1f7f9; font-size: .91rem; }
.home-page .case-number::after { content: ""; width: 44px; height: 1px; background: rgba(197,223,230,.4); }
.home-page .case-number span { color: #b6cad5; font-size: .74rem; letter-spacing: .07em; text-transform: uppercase; }
.home-page .portfolio-case h3 { margin: 0; color: #fff; font-size: clamp(2rem, 2.85vw, 2.7rem); line-height: 1.04; font-weight: 700; letter-spacing: -.025em; }
.home-page .case-subtitle { margin: 5px 0 15px; color: #e4f1f4; font-size: 1.18rem; line-height: 1.3; }
.home-page .case-summary { margin: 0 0 14px; color: #d9e7ec; font-size: .96rem; line-height: 1.48; }
.home-page .case-proof { margin: 0 0 15px; color: #d8e9ed; font-size: .83rem; line-height: 1.4; }
.home-page .case-proof strong { display: block; margin-bottom: 3px; color: var(--home-cyan); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; }
.home-page .case-cta { display: inline-flex; align-items: center; gap: 12px; min-height: 39px; color: var(--home-cyan); font-size: .94rem; font-weight: 700; }
.home-page .case-cta:hover { gap: 18px; }
.home-page .case-primary .case-art { position: absolute; inset: 0; }
.home-page .case-primary .case-art img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; filter: brightness(.62) saturate(.82); }
.home-page .case-primary .case-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(4,25,42,.98), rgba(4,25,42,.89) 37%, rgba(4,25,42,.18) 79%), linear-gradient(0deg,rgba(4,25,42,.25),transparent 50%); }
.home-page .case-primary .case-card-content { width: 46%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 28px 26px; }
.home-page .case-primary .case-summary { font-size: 1.02rem; line-height: 1.5; }
.home-page .case-primary .case-proof { margin-top: auto; }
.home-page .dashboard-mockup { position: absolute; z-index: 1; right: -5%; bottom: -3%; width: 59%; height: 390px; padding: 13px; transform: rotate(-3deg); border: 7px solid #cbdde4; border-radius: 14px 14px 0 0; background: #e9f1f4; box-shadow: 0 22px 65px rgba(0,0,0,.46); color: #183d54; }
.home-page .mockup-bar { display: flex; align-items: center; gap: 5px; height: 27px; padding: 0 9px; border-radius: 4px 4px 0 0; background: #0d304b; color: #f0f8fb; font-size: .7rem; }
.home-page .mockup-bar span { margin-right: auto; }
.home-page .mockup-bar i { width: 5px; height: 5px; border-radius: 50%; background: #84bbce; }
.home-page .mockup-tabs { display: flex; gap: 5px; margin: 12px 0; }
.home-page .mockup-tabs span { flex: 1; padding: 9px 5px; border-radius: 4px; background: #d8e7ed; font-size: .62rem; text-align: center; }
.home-page .mockup-tabs span:first-child { background: #b8dfea; }
.home-page .mockup-content { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.home-page .mockup-panel { height: 225px; padding: 16px; border: 1px solid #ccdae0; border-radius: 5px; background: #fbfdfd; }
.home-page .mockup-panel small { display: block; margin-bottom: 10px; color: #5d8091; font-size: .63rem; }
.home-page .mockup-panel b { font-size: .88rem; }
.home-page .mockup-chart { display: flex; align-items: end; gap: 9px; height: 102px; margin-top: 24px; padding: 0 9px 5px; border-bottom: 1px solid #aec8d3; }
.home-page .mockup-chart i { flex: 1; height: 45%; border-radius: 2px 2px 0 0; background: #7dc6d9; }
.home-page .mockup-chart i:nth-child(2) { height: 64%; }.home-page .mockup-chart i:nth-child(3) { height: 50%; }.home-page .mockup-chart i:nth-child(4) { height: 82%; }.home-page .mockup-chart i:nth-child(5) { height: 69%; }
.home-page .mockup-panel-accent { background: #e7f4f7; }
.home-page .mockup-rows { display: grid; gap: 13px; margin-top: 29px; }
.home-page .mockup-rows i { height: 12px; border-radius: 2px; background: #b9d8e1; }
.home-page .mockup-rows i:nth-child(2) { width: 75%; }.home-page .mockup-rows i:nth-child(3) { width: 88%; }
.home-page .mockup-disclosure { display: block; margin-top: 9px; color: #56798a; font-size: .59rem; }

.home-page .case-small { background: radial-gradient(circle at 100% 10%, #173f5a, #071d30 75%); }
.home-page .case-small .case-card-content { width: 56%; height: 100%; display: flex; flex-direction: column; align-items: flex-start; padding: 18px 18px; }
.home-page .case-small .case-number { margin-bottom: 8px; font-size: .76rem; }
.home-page .case-small .case-number span { font-size: .61rem; }
.home-page .case-small h3 { font-size: clamp(1.4rem, 1.85vw, 1.8rem); }
.home-page .case-small .case-subtitle { margin: 4px 0 9px; font-size: .94rem; }
.home-page .case-small .case-summary { margin-bottom: 8px; font-size: .79rem; line-height: 1.42; }
.home-page .case-small .case-proof { margin-top: auto; margin-bottom: 3px; font-size: .69rem; line-height: 1.32; }
.home-page .case-small .case-proof strong { margin-bottom: 2px; font-size: .6rem; }
.home-page .case-small .case-cta { min-height: 27px; font-size: .78rem; }
.home-page .orders-mockup { position: absolute; right: -5%; top: 9%; width: 49%; height: 83%; padding: 10px; transform: rotate(-3deg); border: 5px solid #d7e7ee; border-radius: 8px; background: #f6fafb; box-shadow: 0 17px 35px rgba(0,0,0,.35); color: #1b4057; }
.home-page .orders-top { display: flex; gap: 3px; margin-bottom: 13px; }
.home-page .orders-top span { flex: 1; padding: 6px 2px; border-radius: 2px; background: #d8eaf3; font-size: .42rem; text-align: center; }
.home-page .orders-top span:first-child { background: #97cce2; }
.home-page .orders-body { display: grid; gap: 12px; }
.home-page .orders-bubble { display: grid; gap: 5px; padding: 14px; border-radius: 5px; background: #e4f2fa; }
.home-page .orders-bubble i { display: block; height: 5px; border-radius: 4px; background: #a9c9d9; }
.home-page .orders-bubble i:nth-child(2) { width: 75%; }.home-page .orders-bubble i:nth-child(3) { width: 88%; }
.home-page .orders-panel { display: grid; gap: 9px; padding: 11px; border: 1px solid #d3e2e8; border-radius: 5px; background: #fff; }
.home-page .orders-panel b { font-size: .62rem; }
.home-page .orders-panel i { display: block; height: 14px; border-radius: 2px; background: #e8f0f3; }
.home-page .orders-panel span { color: #277da0; font-size: .52rem; }
.home-page .preview-disclosure { position: absolute; right: 8px; bottom: 6px; color: #648598; font-size: .48rem; }
.home-page .stack-mockup { position: absolute; right: -4%; top: 9%; width: 52%; height: 84%; padding: 11px; transform: rotate(-2deg); border: 4px solid #3a566b; border-radius: 7px; background: #0c1b2e; box-shadow: 0 16px 35px rgba(0,0,0,.4); }
.home-page .stack-top { display: flex; justify-content: space-between; gap: 5px; color: #deecf0; font-size: .52rem; }
.home-page .stack-mockup svg { width: 100%; height: 74%; }
.home-page .stack-bars { display: grid; gap: 5px; }
.home-page .stack-bars i { height: 4px; border-radius: 3px; background: linear-gradient(90deg,#65d3e6 55%,#a955c0 55%,#a955c0 75%,#394d62 75%); }
.home-page .stack-bars i:nth-child(2) { width: 84%; }.home-page .stack-bars i:nth-child(3) { width: 70%; }
.home-page .stack-mockup .preview-disclosure { color: #a9c0cf; }

.home-page .real-preview {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(201, 225, 233, .48);
  border-radius: 7px;
  background: #e8eef2;
  box-shadow: 0 12px 28px rgba(0, 12, 26, .26);
}
.home-page .real-preview img { position: absolute; display: block; max-width: none; height: auto; filter: none; }
.home-page .real-preview-vallacorp { right: -2%; bottom: 19px; width: 57%; height: 320px; transform: rotate(-1deg); }
.home-page .real-preview-vallacorp img { top: -20%; left: -20%; width: 160%; }
.home-page .real-preview-orders,
.home-page .real-preview-stack { top: 13%; right: -2%; width: 49%; height: 74%; transform: rotate(-1deg); }
.home-page .real-preview-orders img { top: -19%; left: -3%; width: 155%; }
.home-page .real-preview-stack img { top: -35%; left: 0; width: 100%; }

.home-page .contact { padding: 45px 0 55px; border-top: 1px solid rgba(209,230,237,.16); background: #061a2b; }
.home-page .contact-inner { max-width: none; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(275px,.65fr); gap: 50px; align-items: center; }
.home-page .contact h2 { max-width: 850px; font-size: clamp(1.85rem, 2.55vw, 2.65rem); font-weight: 650; line-height: 1.21; letter-spacing: -.018em; }
.home-page .contact h2 em { display: inline; color: var(--home-blue); }
.home-page .contact-details { padding-left: 30px; border-left: 1px solid rgba(209,230,237,.22); }
.home-page .contact-email { margin: 0; padding: 0 0 5px; font-size: clamp(1.08rem, 1.5vw, 1.35rem); letter-spacing: 0; }
.home-page .contact-links { align-items: center; gap: 12px; margin-top: 18px; }
.home-page .contact-links :is(a, button) { font-size: .96rem; }
.home-page .contact-links > span { color: #8daebe; }

@media (max-width: 1280px) {
  .home-page .case-small .case-summary { font-size: .74rem; }
}

@media (max-width: 1180px) {
  .home-page .top-grid { grid-template-columns: 1fr; gap: 32px; padding-top: 110px; }
  .home-page .top-grid .hero { min-height: 540px; }
  .home-page .top-grid .hero-identity { grid-template-columns: 187px minmax(0,1fr); }
  .home-page .top-grid .approach { padding: 28px 0 0; border-left: 0; border-top: 1px solid rgba(204, 227, 235, .2); }
  .home-page .top-grid .approach-heading { margin-bottom: 21px; }
  .home-page .top-grid .principles { display: block; }
  .home-page .metrics-band { margin-top: 28px; }
}

@media (max-width: 980px) {
  .home-page .timeline { gap: 22px; }
  .home-page .timeline-item > p:not(.timeline-place) { font-size: .91rem; }
  .home-page .timeline-facts strong { font-size: .9rem; }
  .home-page .case-composition { height: auto; grid-template-columns: 1fr; }
  .home-page .case-primary { min-height: 520px; }
  .home-page .case-secondary-stack { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: 300px; }
  .home-page .case-small .case-card-content { width: 62%; }
  .home-page .orders-mockup,.home-page .stack-mockup { width: 45%; }
}

@media (min-width: 761px) and (max-width: 780px) {
  .home-page .timeline-meta { height: 52px; }
  .home-page .timeline-meta > span:last-child { white-space: normal; }
}

@media (max-width: 760px) {
  .home-page .container { width: calc(100% - 48px); }
  .home-page .nav-shell { min-height: 70px; }
  .home-page .main-nav { top: 69px; left: 0; right: 0; transform: none; background: #0a2337; }
  .home-page .main-nav a[href="#inicio"] { border-bottom: 0; }
  .home-page .top-grid { padding-top: 105px; gap: 30px; }
  .home-page .top-grid .hero { min-height: 0; padding-bottom: 0; display: flex; flex-direction: column; }
  .home-page .top-grid .hero-identity { grid-template-columns: clamp(94px, 20.5vw, 134px) minmax(0,1fr); gap: 16px; }
  .home-page .top-grid .hero h1 { font-size: clamp(2.6rem, 8.7vw, 3.9rem); }
  .home-page .top-grid .hero-role,
  .home-page .top-grid .hero-intro { max-width: 100%; }
  .home-page .top-grid .hero-role { margin-top: 21px; font-size: clamp(1.55rem, 4.4vw, 2rem); }
  .home-page .top-grid .hero-intro { margin-top: 24px; }
  .home-page .top-grid .hero-thesis,
  .home-page .top-grid .hero-actions { margin-left: 0; }
  .home-page .top-grid .approach { padding-top: 32px; }
  .home-page .top-grid .principles { display: block; }
  .home-page .top-grid .principle:nth-child(2) { border-top: 1px solid rgba(204, 227, 235, .18); }
  .home-page .metrics-band { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 0; margin-top: 30px; }
  .home-page .metric:nth-child(3) { padding-left: 0; border-left: 0; }
  .home-page .journey { padding: 55px 0 65px; }
  .home-page .journey .section-heading { margin-bottom: 23px; }
  .home-page .timeline { grid-template-columns: 1fr; gap: 34px; padding-left: 22px; }
  .home-page .timeline::before { display: block; top: 0; bottom: 0; left: 0; right: auto; border-top: 0; border-left: 1px solid rgba(197,223,230,.35); }
  .home-page .timeline-meta { height: 34px; }
  .home-page .timeline-meta > span:last-child { padding-left: 0; white-space: normal; }
  .home-page .timeline-meta::after { display: none; }
  .home-page .timeline-point { left: -28px; top: 4px; }
  .home-page .timeline-image { height: clamp(190px,48vw,270px); }
  .home-page .timeline-item h3,
  .home-page .timeline-item > p:not(.timeline-place) { min-height: 0; }
  .home-page .timeline-item > p:not(.timeline-place) { font-size: 1rem; }
  .home-page .timeline-facts { margin-top: 12px; }
  .home-page .timeline-item:last-child::after { display: none; }
  .home-page .work { padding: 55px 0 65px; }
  .home-page .case-composition { display: block; height: auto; }
  .home-page .case-primary { min-height: 0; }
  .home-page .case-primary .case-art { height: 100%; }
  .home-page .case-primary .case-card-content { width: 100%; min-height: 420px; padding: 28px; }
  .home-page .case-primary .case-summary { max-width: 440px; }
  .home-page .real-preview-vallacorp { position: relative; right: auto; bottom: auto; width: calc(100% - 56px); height: 270px; margin: -15px 28px -25px; transform: none; }
  .home-page .dashboard-mockup { position: relative; right: auto; bottom: auto; width: calc(100% - 56px); height: 300px; margin: -15px 28px -35px; }
  .home-page .mockup-panel { height: 150px; }
  .home-page .mockup-chart { height: 50px; margin-top: 14px; }
  .home-page .mockup-rows { margin-top: 15px; }
  .home-page .case-secondary-stack { display: grid; grid-template-columns: 1fr; grid-template-rows: auto; gap: 16px; margin-top: 16px; }
  .home-page .case-small { min-height: 300px; }
  .home-page .case-small .case-card-content { width: 56%; }
  .home-page .case-small .case-summary { font-size: .85rem; }
  .home-page .orders-mockup,.home-page .stack-mockup { width: 47%; }
  .home-page .real-preview-orders,
  .home-page .real-preview-stack { width: 47%; }
  .home-page .contact { padding: 48px 0 55px; }
  .home-page .contact-inner { display: block; }
  .home-page .contact-details { margin-top: 26px; padding: 0; border: 0; }
}

@media (max-width: 520px) {
  .home-page .container { width: calc(100% - 40px); }
  .home-page .top-grid .hero-identity { grid-template-columns: 80px minmax(0,1fr); gap: 12px; }
  .home-page .top-grid .hero h1 { font-size: clamp(2.28rem, 10.8vw, 3rem); }
  .home-page .top-grid .hero-role { font-size: 1.48rem; }
  .home-page .top-grid .hero-intro { font-size: 1.03rem; }
  .home-page .top-grid .hero-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .home-page .top-grid .hero-actions .button { min-width: 0; padding: 0 10px; font-size: .82rem; }
  .home-page .top-grid .approach-heading h2 { font-size: 2.35rem; }
  .home-page .metric { gap: 8px; padding-inline: 12px; }
  .home-page .metric strong { font-size: 1.42rem; }
  .home-page .metric span { font-size: .77rem; }
  .home-page .journey .section-heading h2,.home-page .work-heading h2 { font-size: 2.55rem; }
  .home-page .timeline-facts span { font-size: .69rem; }
  .home-page .timeline-facts strong { font-size: .88rem; }
  .home-page .case-primary .case-card-content { min-height: 0; padding: 26px 22px 40px; }
  .home-page .case-primary .case-proof { margin-top: 17px; }
  .home-page .real-preview-vallacorp { width: calc(100% - 28px); height: 230px; margin: 0 14px -20px; }
  .home-page .dashboard-mockup { width: calc(100% - 28px); height: 260px; margin: 0 14px -28px; padding: 7px; transform: rotate(-2deg); }
  .home-page .mockup-tabs { margin: 7px 0; }
  .home-page .mockup-panel { height: 120px; padding: 9px; }
  .home-page .mockup-panel b { font-size: .67rem; }
  .home-page .mockup-chart { height: 35px; }
  .home-page .mockup-rows { gap: 6px; }
  .home-page .case-small { display: flex; flex-direction: column; min-height: 0; }
  .home-page .case-small .case-card-content { width: 100%; height: auto; padding: 24px 22px 14px; }
  .home-page .case-small .case-summary { font-size: .88rem; }
  .home-page .case-small .case-proof { margin-top: 12px; }
  .home-page .orders-mockup,.home-page .stack-mockup { position: relative; inset: auto; align-self: flex-end; width: 82%; height: 205px; margin: 6px -7px -10px 0; }
  .home-page .real-preview-orders,
  .home-page .real-preview-stack { position: relative; inset: auto; align-self: flex-end; width: 82%; height: 205px; margin: 6px -7px -10px 0; transform: none; }
  .home-page .contact h2 { font-size: 1.9rem; }
  .home-page .contact-email { font-size: 1rem; overflow-wrap: anywhere; }
}
