/* RUBEN — per-section overrides (2026-09-05). One modifier class per treatment,
   added in index.html next to the template class; template rules stay untouched. */

/* "The one" presentation block (blog-details-area): black ground, white N27 title. */
.blog-details-area.ruben-black { background-color: var(--black); }
.blog-details-area.ruben-black .section-title { color: var(--white); }
.blog-details-area.ruben-black .meta span,
.blog-details-area.ruben-black .meta .name span { color: rgba(255, 255, 255, 0.72); }

/* Marketing-demo block (service-area-3 + work-area-3 imported from marketing-agency.html).
   `.dark` on the wrapper flips the template's own tokens (--primary white, --secondary grey,
   --border white/10%) exactly as the dark demo's <body class="dark"> does; the wrapper paints
   the black ground. The container keeps the marketing theme's width: Bootstrap's 1320px until
   1850px viewports (the startup theme used on this page would jump to 1650px at >=1650px). */
.ruben-marketing-block { background-color: var(--black); }
.ruben-marketing-block .container.large { max-width: 1320px; }
@media (min-width: 1850px) {
  .ruben-marketing-block .container.large { max-width: 1850px; }
}

/* "Only apps" statement under the AgenticOS grid (work-area-3 header). */
.ruben-marketing-block .work-area-3 .section-header .text-wrapper { margin-top: 32px; }
.ruben-marketing-block .work-area-3 .section-header .ruben-onlyapps {
  max-width: 760px; margin: 0; color: var(--secondary); font-size: 18px; line-height: 1.65;
}
@media (max-width: 767px) {
  .ruben-marketing-block .work-area-3 .section-header .ruben-onlyapps { font-size: 16px; }
}

/* With the template's work tiles removed, the statement is the last thing in the black
   block: give it the same breathing room below as the section has above. */
/* mirrors .section-spacing-top: 100 / 90 (<=1919) / 80 (<=1399) / 60 (<=1199) */
.ruben-marketing-block .work-area-3-inner.section-spacing-top { padding-bottom: 100px; }
@media (max-width: 1919px) { .ruben-marketing-block .work-area-3-inner.section-spacing-top { padding-bottom: 90px; } }
@media (max-width: 1399px) { .ruben-marketing-block .work-area-3-inner.section-spacing-top { padding-bottom: 80px; } }
@media (max-width: 1199px) { .ruben-marketing-block .work-area-3-inner.section-spacing-top { padding-bottom: 60px; } }

/* "You are so much / ready for this." — two forced lines (SplitText turns each block into a line). */
.actually-area .t_line .rb-line { display: block; }

/* Phones: pinned full-screen sections must cover the screen in BOTH address-bar states.
   svh (small viewport) left a body-coloured band at the bottom the moment Brave/Chrome hid
   the bar while scrolling; lvh (large viewport) always fills, at worst tucking a few pixels
   under the bar when it is visible. 100vh is the fallback for browsers without lvh. */
@media (max-width: 767px) {
  .portfolio-4 .swiper-container.portfolio-4-activ,
  .portfolio-4 .slider .swiper-slide .slide-inner,
  .portfolio-4 .slider .swiper-slide .slide-inner img,
  .actually-area { height: 100vh; height: 100lvh; }
  /* ScrollTrigger writes the pinned section's height inline in px at pin time; keep it at the
     large viewport regardless of when that happens. */
  .portfolio-4 { height: 100vh !important; height: 100lvh !important; }
}

/* ============ mobile audit 2026-09-05 ============ */
/* The template hides EVERY <br> under 768px (style.css: `br{display:none}`), which glued
   "Agentic" to "One", "Model" to "24 GB", etc. Our copy sets its breaks on purpose. */
@media (max-width: 767px) { main br { display: inline; } }

/* "the one presentation" (work-details-area): specs + statement */
.work-details-area .section-info .title.rb-specs { margin-top: 28px; }
.work-details-area .section-info .rb-lead { font-weight: 500; font-size: 22px; line-height: 1.3; color: var(--primary); margin: 0 0 14px; }
.work-details-area .section-info p.text + .rb-lead { margin-top: 22px; }
.work-details-area .gallery-wrapper.rb-gallery-gap { margin-top: 70px; }
@media (max-width: 767px) {
  .work-details-area .section-info .title { font-size: 40px; }
  .work-details-area .gallery-wrapper.rb-gallery-gap { margin-top: 40px; }
}

/* ===== v1.9 — trust/legal pages built from the index's own blocks (World Premiere title block + specs block), black ground; shared footer (2026-09-06) ===== */
.rb-pagewrap { background-color: var(--black); color: #fff; }
.rb-pagehead .blog-details-area-inner.section-spacing-top { padding-top: 190px; padding-bottom: 0; }
@media (max-width: 1399px) { .rb-pagehead .blog-details-area-inner.section-spacing-top { padding-top: 160px; } }
@media (max-width: 767px) { .rb-pagehead .blog-details-area-inner.section-spacing-top { padding-top: 130px; } }
.rb-pagehead .section-title.font-n27 { font-family: var(--font_n27); font-weight: 500; color: #fff; }
.rb-pagehead .meta span, .rb-pagehead .meta .name span { color: rgba(255,255,255,0.72); }
.rb-pagebody .work-details-area-inner.section-spacing { padding-top: 40px; }
.rb-pagebody .section-info { margin-top: 0; margin-bottom: 80px; }
@media (max-width: 991px) { .rb-pagebody .section-info { grid-template-columns: 1fr; margin-bottom: 56px; } }
.rb-pagebody .section-info .title.font-n27 { font-family: var(--font_n27); font-weight: 500; color: #fff; letter-spacing: -0.01em; }
.rb-pagebody .section-info .text { color: rgba(255,255,255,0.86); }
.rb-pagebody .section-info .text + .text, .rb-pagebody .section-info .rb-table-wrap + .text, .rb-pagebody .section-info .rb-list + .text { margin-top: 18px; }
.rb-pagebody .section-info .text a, .rb-pagebody .rb-list li a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,0.35); }
.rb-pagebody .section-info .text a:hover, .rb-pagebody .rb-list li a:hover { text-decoration-color: #fff; }
.rb-pagebody .rb-note { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.55); margin-top: 28px; }
.rb-pagebody .rb-list { margin: 0; padding-left: 22px; list-style: disc; }
.rb-pagebody .rb-list li { font-size: 20px; line-height: 28px; color: rgba(255,255,255,0.86); margin-bottom: 12px; }
.rb-pagebody .rb-list li strong { color: #fff; font-weight: 500; }
.rb-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rb-table { width: 100%; border-collapse: collapse; font-size: 17px; line-height: 1.45; color: rgba(255,255,255,0.86); }
.rb-table th, .rb-table td { text-align: left; vertical-align: top; padding: 12px 18px 12px 0; border-bottom: 1px solid rgba(255,255,255,0.18); }
.rb-table th { font-family: var(--font_n27); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255,255,255,0.55); }
.rb-table td:first-child { width: 30%; color: #fff; font-weight: 500; }
.rb-table a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rb-paper { margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.15); }
.rb-paper:first-child { margin-top: 26px; }
.rb-paper-title { font-family: var(--font_n27); font-weight: 500; font-size: 26px; line-height: 1.15; color: #fff; margin-bottom: 8px; }
@media (max-width: 767px) { .rb-paper-title { font-size: 21px; } }
.rb-pagebody .section-info .rb-paper-meta { font-size: 15px; color: rgba(255,255,255,0.55); margin-top: 0; margin-bottom: 10px; }
.rb-pagebody .section-info .rb-paper-doi { margin-top: 10px; }
.rb-pagebody .section-info .rb-cite { font-size: 15px; line-height: 1.5; color: rgba(255,255,255,0.6); margin-top: 8px; padding-left: 16px; border-left: 2px solid rgba(255,255,255,0.25); }
.rb-press-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
@media (max-width: 767px) { .rb-press-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.rb-press-item { display: block; background: #1c1c1c; border-radius: 6px; padding: 18px; text-align: center; color: #fff; }
.rb-press-item img { width: 100%; height: 220px; object-fit: contain; display: block; }
.rb-press-item span { display: block; margin-top: 10px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.7; }
/* footer (white, as on index) */
/* brand left, both link columns pushed to the right edge: the dock panel opens centred over the footer and must not cover links */
.footer-area-4 .footer-widget-wrapper.rb-footer { grid-template-columns: minmax(0, 1fr) auto auto; gap: 40px 120px; align-items: start; justify-content: space-between; }
@media (max-width: 1399px) { .footer-area-4 .footer-widget-wrapper.rb-footer { gap: 40px 40px; } }
/* 992–1299px: the centred 420px panel leaves too little room for two columns; stack Company over Legal in one right column */
@media (max-width: 1299px) and (min-width: 992px) {
  .footer-area-4 .footer-widget-wrapper.rb-footer { grid-template-columns: minmax(0, 1fr) auto; }
  .footer-area-4 .footer-widget-wrapper.rb-footer > .footer-widget-box:nth-child(2),
  .footer-area-4 .footer-widget-wrapper.rb-footer > .footer-widget-box:nth-child(3) { grid-column: 2; }
}
@media (max-width: 991px) { .footer-area-4 .footer-widget-wrapper.rb-footer { grid-template-columns: 1fr 1fr; } .rb-footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-area-4 .footer-widget-wrapper.rb-footer { grid-template-columns: 1fr; } }
.footer-area-4 .rb-footer-line { margin-top: 22px; font-size: 16px; line-height: 1.5; opacity: 0.7; max-width: 340px; }
.footer-area-4 .rb-footer-title { font-family: var(--font_n27); font-weight: 500; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.55; margin-bottom: 14px; }
.footer-area-4 .footer-nav-list.rb-footer-list { flex-direction: column; gap: 8px; }
.footer-area-4 .footer-nav-list.rb-footer-list li { font-size: 18px; line-height: 1.4; }
@media (max-width: 767px) { .footer-area-4 .footer-nav-list.rb-footer-list li { font-size: 17px; } }
.footer-area-4 .copyright-text .text { font-size: 14px; opacity: 0.6; }

/* ===== v2.0 — header geometry restore (2026-09-06). The template header got its height from the menu items and the
   mobile hamburger; both were removed on 2026-09-05 (the RUBEN dock is the only navigation), which collapsed the header
   to the logo's height and stuck the logo to the top edge. Measured on the last good build: 63px ≥1200px, 71px below. ===== */
.header-area-5 .header-area-5__inner { min-height: 63px; }
@media (max-width: 1199px) { .header-area-5 .header-area-5__inner { min-height: 71px; } }
.footer-area-4 .rb-footer-line .rb-line { display: block; }

/* ===== v2.2 — "Let's reserve your spot" at half size (owner, 2026-09-06): every template breakpoint halved ===== */
.cta-area-4 .cta-area-4-inner.section-spacing-top { padding-top: 50px; }
@media (max-width: 1919px) { .cta-area-4 .cta-area-4-inner.section-spacing-top { padding-top: 45px; } }
@media (max-width: 1399px) { .cta-area-4 .cta-area-4-inner.section-spacing-top { padding-top: 40px; } }
@media (max-width: 1199px) { .cta-area-4 .cta-area-4-inner.section-spacing-top { padding-top: 30px; } }
.cta-area-4 .section-title { font-size: 70px; padding-bottom: 17px; }
.cta-area-4 .section-title::before { height: 3px; }
.cta-area-4 .section-title .icon { margin-left: 0.17em; }
.cta-area-4 .section-title .icon img { height: 0.62em; width: auto; }
@media (max-width: 1919px) { .cta-area-4 .section-title { font-size: 60px; padding-bottom: 12px; } }
@media (max-width: 1399px) { .cta-area-4 .section-title { font-size: 55px; } }
@media (max-width: 1199px) { .cta-area-4 .section-title { font-size: 45px; padding-bottom: 7px; } .cta-area-4 .section-title::before { height: 2px; } }
@media (max-width: 991px)  { .cta-area-4 .section-title { font-size: 30px; } }
@media (max-width: 575px)  { .cta-area-4 .section-title { font-size: 20px; } }

/* ===== v2.3 — copyright line right-aligned so the open dock panel never covers it (owner, 2026-09-06) ===== */
.footer-area-4 .copyright-text .text { text-align: right; }
@media (max-width: 767px) { .footer-area-4 .copyright-text .text { text-align: left; } }
/* narrower desktops: wrap the line into two right-aligned lines so it stays right of the dock; phones: lift it above the dock */
@media (max-width: 1399px) and (min-width: 768px) { .footer-area-4 .copyright-text .text { max-width: 360px; margin-left: auto; } }
@media (max-width: 767px) { .footer-area-4 .copyright-area-inner { padding-bottom: 120px; } }
