/* Inner Oxy overrides for the ported Soale theme.
   The theme stylesheets under /soale are vendored and gitignored, so any fix that
   must survive a theme re-provision belongs here, loaded after them.
   Loaded on every page. */

/* ---------------------------------------------------------------------------
   1. Ghost wordmark / footer CTA boundary
   The Webflow interaction "Brand Logo Animation" (a-26) translates
   .brand-logo-image to yValue:-100% and slides it to 0 at 40% scroll progress.
   .brand-logo-section was overflow:visible, and the wordmark is positioned
   (relative, z-index 0), so mid-animation it painted on top of the CTA section
   above it - a full wordmark height of outline type over the gradient.
   Clipping the section to itself fixes it: the wordmark now rises into view from
   behind the section's own top edge instead of over the CTA. */
.brand-logo-section {
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   2. Case-study / service notes panel
   The decorative picture slot beside the case accordions and the service benefit
   tabs. It carries the section's own notes as type instead of an image: no
   photograph, no borrowed art, nothing to download. The host keeps the template's
   exact 15:17 slot so the layout does not shift at any breakpoint. */

.case-panel-host {
  aspect-ratio: 15 / 17;
  container-type: inline-size;
}

.case-notes-panel {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 6.4cqw 6cqw;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: inherit;
  /* the same flat surface as the accordion cards beside it; a gradient over
     680px banded visibly in 8-bit, so this is a solid colour */
  background: #121212;
  font-family: "Inter Tight", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.case-notes-eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(9px, 2.1cqw, 13px);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f25325;
}

.case-notes-body {
  display: flex;
  flex-direction: column;
  gap: 3.4cqw;
  margin: auto 0;
  padding: 3cqw 0;
}

.case-notes-line {
  margin: 0;
  font-size: clamp(15px, 5.2cqw, 36px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: #ede8e0;
  text-wrap: balance;
}

.case-notes-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5cqw;
  padding-top: 2.6cqw;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(9px, 1.95cqw, 13px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff80;
}

.case-notes-status {
  display: inline-flex;
  align-items: center;
  color: #ede8e0;
  white-space: nowrap;
}

.case-notes-status::before {
  content: "";
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  margin-right: 0.6em;
  border-radius: 50%;
  background: #f25325;
}

/* Dense variant: the service pages' failure statements are full sentences, so
   they need a smaller step and looser leading than the case-study notes. */
.case-notes-panel--dense .case-notes-body {
  gap: 2.4cqw;
  padding: 2cqw 0;
}

.case-notes-panel--dense .case-notes-line {
  font-size: clamp(13px, 3.35cqw, 30px);
  line-height: 1.34;
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

/* Fallback for browsers without container queries. */
@supports not (container-type: inline-size) {
  .case-notes-panel { padding: 40px 36px; }
  .case-notes-eyebrow { font-size: 12px; }
  .case-notes-body { gap: 20px; }
  .case-notes-line { font-size: clamp(19px, 2.1vw, 34px); }
  .case-notes-foot { font-size: 12px; }
}

@media screen and (max-width: 479px) {
  .case-notes-panel { padding: 22px 20px; }
  .case-notes-body { gap: 12px; padding: 12px 0; }
  .case-notes-panel--dense .case-notes-body { gap: 10px; }
}

/* ---------------------------------------------------------------------------
   3. About page: the team
   The template's about hero is a 3x3 collage of mixed-size cells: three large
   portraits, four small ones, and seven small boxes that held invented client
   logos (All-Shift, Boltshift, Eightball, and so on - brands the template made
   up). The design is kept exactly as it was. The stock strangers are replaced by
   the supplied team portraits; the seven logo boxes are left empty on purpose.

   The supplied photographs are used as supplied - framing, backdrop and grade
   only, never retouching.

   Below 992px the template hid this grid and swapped in one flat 2165px stock
   mosaic. The same design now runs on phones and tablets instead: identical
   cells, made square by an aspect ratio, each flex cell scaled to fit.
*/
@media screen and (max-width: 991px) {
  .about-hero-image-grid {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    aspect-ratio: 1 / 1;
  }

  .about-hero-image-box {
    height: 100%;
  }

  .about-image-box {
    height: 50%;
  }

  .about-image-box.width {
    height: 100%;
  }

  /* the template's phone-only stock mosaic is gone from the markup */
  .about-mobile-image-div {
    display: none;
  }
}

/* ---------------------------------------------------------------------------
   4. Images rendering with object-fit:fill
   Measured across every route and breakpoint, these were drawn with an aspect
   ratio different from their own pixel data, so they were visibly squashed:
   the full-bleed hero background by 19-77% depending on the page, plus three
   small icons and one avatar box. Set the fit the layout actually wants. */
.hero-background-image {
  object-fit: cover;
}

.benefit-icon-02,
.benefit-icon-05,
.contact-label-icon {
  object-fit: contain;
}

.owner-image {
  object-fit: cover;
}

/* ---------------------------------------------------------------------------
   5. About page: the practical details, without stock art
   The template filled these three cards with stock photographs (a tennis ball on
   a court, an abstract light study, an orchid) that said nothing about the
   company. There is no honest photograph of a location or an inbox, so the artsy
   filler is gone. The two real numbers the section actually carries - working
   hours and first-response time - stay as cards, moved from an overlay on the
   deleted image into the flow of the column.
*/
.outcome-div {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
}

.outcome-detail-div {
  height: 100%;
}

.outcome-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.outcome-stat-row .project-result-card {
  padding: 14px 16px;
}

/* ---------------------------------------------------------------------------
   5. About page: two practicalities cards after the location card was removed
   The location line was removed, so the three-column row would leave
   an empty column. Two columns on desktop, one on phones.
*/
.outcome-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 767px) { .outcome-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------------------
   5a. About page: the mobile fact cards
   The template overlapped these cards onto the bottom of the mobile band photo
   (margin-top: -100px). That photo is gone, so the negative pull would drag the
   cards over the section heading above them; put them back in normal flow.
*/
@media screen and (max-width: 767px) {
  .about-count-wrapper {
    margin-top: 8px;
    padding-left: 0;
    padding-right: 0;
  }
}

/* ---------------------------------------------------------------------------
   5b. About page: the mission block, once the stock band photo was removed
   The template put a full-bleed stock photograph between the mission statement
   and the "roles we assemble" row. There is no real photograph we can defend
   there, so it is gone; the spacing has to carry the section instead, and the
   two product names read as marks rather than plain words.
*/
.about-page-section .company-logo-wrapper {
  margin-top: 64px;
}

/* The two product names here read as marks rather than plain words. Scoped to
   the about section: the home page styles the same class in its own inline
   style block and must not be restyled from here. */
.about-page-section .company-logo-brand {
  display: inline-flex;
  align-items: center;
  height: auto;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ede8e0;
}

/* ---------------------------------------------------------------------------
   6. Fluid images must not inherit a fixed height from their attributes
   The markup now carries width/height on card and hero imagery so the layout
   reserves space before the file loads (good for CLS). The theme sizes these
   slots by width only - .work-small-image, .blog-thumb-image and
   .outcome-image are width:100%, everything else falls back to the base
   img { max-width: 100% }. With no height in CSS, the HTML height attribute is a
   presentational hint and wins, so each element keeps the file's pixel height
   while its width shrinks to the column: .blog-thumb-image drew at 411x818 from
   a 1200x818 file (x2.9 squashed), .service-hero-image at 558x1780 from
   2116x1780 (x3.8), and on mobile .about-large-mobile-image at 350x2400 from
   390x304 (x8.8).

   The theme's base rule already has max-width:100%, so the missing half of the
   standard fluid-image pair is height:auto. Declaring it once here fixes every
   current and future slot instead of listing classes. Images that are meant to
   be a fixed or cropped box keep their own height because a class selector
   beats this element selector: .hero-background-image (height:100%),
   .owner-image (49px), .brand-logo-image, the icons. */
img {
  height: auto;
}

/* ---------------------------------------------------------------------------
   3. Brand art panels (2026-11-23)
   The template shipped demo imagery: laptop mockups stamped "13", fake
   dashboard screenshots with invented numbers, stock portrait avatars and its
   own "soale" logo card. All of it read as demo content on a live site, so the
   slots keep their exact geometry and carry an Inner Oxy graphic instead.

   .oxy-art is the slot wrapper for the service and company images: a flat ink
   surface, a mono eyebrow from data-word and optional labels. The image does the
   work; there is no decorative grid and no colour wash behind it. The panel keeps
   the template's exact geometry so nothing shifts. */

.oxy-art {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
  overflow: hidden;
  padding: 20px;
  color: #fff;
  background: #0b0b0c;
}

.oxy-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: none;
}

/* Card meta labels (the "SERVICE 01" eyebrow and the big index numeral) were
   removed by request: the image and the copy carry the card on their own. */
.oxy-art::after {
  content: none;
  display: none;
}

.oxy-art--v2,
.oxy-art--v3,
.oxy-art--v4 {
  background: #0b0b0c;
}

.oxy-art__index {
  display: none;
}

/* Photo slots: the project image at its own brightness, edge to edge. The
   template laid copy over the photograph, so it shipped a dark scrim; the type
   is gone now, and the scrim only made the screenshots read as black panels. */
.oxy-art--photo {
  background: #08080a;
}

.oxy-art__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
}

.oxy-art--photo::before {
  z-index: -1;
  background-image: none;
  -webkit-mask-image: none;
  mask-image: none;
  opacity: 0;
}


/* Home services slider. The template laid the copy over a dark hero photograph;
   the real screenshots are bright, so the card now splits: image on top, copy
   in a solid ink panel below. Nothing overlaps, and the image keeps its height
   from its own aspect ratio. */
.service-slider-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 520px;
  background: #101012;
  border-radius: 24px;
  overflow: hidden;
}

.service-slider-art {
  position: relative;
  inset: auto;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  border-radius: 0;
  background: #0b0b0c;
}

.service-detail-div {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  height: auto;
  flex: 1 1 auto;
  justify-content: space-between;
  padding: 18px 20px 20px;
  gap: 14px;
}

.service-detail-div.center {
  position: relative;
  inset: auto;
  flex: 1 1 auto;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  padding: 24px;
}

/* The last slide is a call to action with no photograph; drop the empty image
   area so the panel fills the whole card. */
.service-slider-card:has(.service-detail-div.center) .service-slider-art {
  display: none;
}

/* Home about section: the photograph was one of the "soale" demo images. */
.about-image-div {
  display: flex;
  min-height: 420px;
}

.about-art {
  flex: 1;
  border-radius: 24px;
  padding: 28px;
  gap: 10px;
}

/* Home benefit section: template photograph slot. */
.benefit-image-div {
  min-height: 300px;
}

.benefit-art {
  position: absolute;
  inset: 0;
  border-radius: 24px;
}

/* Home work cards: three of five used template stock images; the two real
   product renders stay. */
.work-art {
  width: 100%;
  aspect-ratio: 1484 / 1600;
}

/* Services page: template hero photograph and seven demo screenshots. */
.service-hero-image-div {
  min-height: 360px;
}

.service-hero-art {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border-radius: inherit;
}

.service-image-div {
  position: relative;
}

.service-card-art {
  width: 100%;
  height: 380px;
  border-radius: 0;
}

/* Service detail pages: template hero screenshot and the "other services"
   demo thumbnails. */
.service-detail-hero-image-div {
  position: relative;
  aspect-ratio: 1600 / 1225;
  min-height: 320px;
  border-radius: 34px;
  overflow: hidden;
}

.service-detail-art {
  position: absolute;
  inset: 0;
}

.blog-thumb-art {
  width: 100%;
  aspect-ratio: 1600 / 826;
  border-radius: inherit;
}

@media screen and (max-width: 991px) {
  .about-image-div,
  .about-art {
    min-height: 340px;
  }

  .service-card-art {
    height: 320px;
  }
}

@media screen and (max-width: 767px) {
  .about-image-div,
  .about-art {
    min-height: 300px;
  }

  .service-slider-card {
    min-height: 0;
  }

  .service-slider-art {
    aspect-ratio: 5 / 4;
  }

  .service-hero-art,
  .service-hero-image-div {
    min-height: 260px;
  }

  .service-card-art {
    height: auto;
    aspect-ratio: 1600 / 826;
  }

  .service-detail-hero-image-div {
    min-height: 240px;
  }

  .benefit-image-div {
    min-height: 240px;
  }
}

/* The four principle cards used to reserve space for a template screenshot.
   With the screenshot gone the grid was stretching short cards to the tallest
   stack and leaving empty panels, so the cards now size to their own copy. */
.feature-grid {
  align-items: start;
}

.feature-card {
  height: auto;
}

.feature-div {
  justify-content: flex-start;
}

/* The design-system card lost its template illustration; a panel keeps the
   column full without reserving dead space. */
.benefit-small-art {
  flex: 1 1 auto;
  min-height: 220px;
  border-radius: 18px;
}
