/* Keep the overlay independent of the hero photograph. */
:root {
  --home-hero-background: url('/assets/studio/arslon-8x8-design-01-left.webp');
  --home-hero-overlay: linear-gradient(90deg, rgba(22, 27, 30, .88), rgba(22, 27, 30, .68) 42%, rgba(22, 27, 30, .22) 85%);
}

.home-inner {
  width: 91%;
  max-width: var(--content-max, 1312px);
  margin-inline: auto;
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  height: min(100svh, 1083px);
  height: min(100dvh, 1083px);
  min-height: 0;
  margin-top: calc(-1 * var(--header-reserved-height, 123px));
  padding-top: calc(var(--header-reserved-height, 123px) + clamp(32px, 5dvh, 72px));
  padding-bottom: clamp(40px, 6dvh, 72px);
  background: var(--ink, #161b1e);
  color: #fff;
}

.home-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.home-hero-media::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: var(--home-hero-background);
  background-position: right 4.5% center;
  background-size: min(90%, 1280px) auto;
  background-repeat: no-repeat;
}
.home-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--home-hero-overlay);
}
.home-hero-inner { container-type: inline-size; }
.home-hero-content { max-width: 1100px; }
.home-hero-eyebrow {
  margin-bottom: 24px;
  color: #e1e5e6;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .025em;
}
.home-title {
  font-family: var(--sans);
  font-size: clamp(46px, 6.4cqw, 84px);
  font-weight: 500;
  line-height: 1.09;
  letter-spacing: -.05em;
}
.home-title > span { display: block; color: var(--sand-light); }
.home-hero-copy {
  max-width: 600px;
  margin-top: 28px;
  color: #e1e5e6;
  font-size: 18px;
  line-height: 1.7;
}
.home-hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-top: 36px;
}
.home-hero .home-primary-link {
  min-height: 52px;
  padding: 15px 22px;
  border: 1px solid var(--sand);
  background: var(--sand);
  color: var(--ink);
  font-size: 14px;
}
.home-hero .home-primary-link:hover {
  border-color: var(--sand-light);
  background: var(--sand-light);
}
.home-secondary-link { color: #fff; font-size: 14px; gap: 16px; }
.home-secondary-link > span { font-size: 21px; }
.home-secondary-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.home-hero-image-note {
  position: absolute;
  right: max(4.5%, calc((100% - var(--content-max, 1312px)) / 2));
  bottom: 22px;
  color: #f1f2f2;
  font-size: 11px;
  line-height: 1.5;
}

.home-section { padding-block: clamp(52px, 7vw, 96px); }
.home-section-heading {
  max-width: 720px;
  font-size: clamp(30px, 3.3vw, 48px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.04em;
}
.home-arslon { background: var(--ink-light); color: var(--paper); }
.home-arslon .home-section-kicker { margin-bottom: 12px; color: var(--sand-light); }
.home-arslon-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--grid-gap);
  margin-top: clamp(20px, 3vw, 36px);
  --home-reveal-delay: 90ms;
}
.home-arslon-gallery img { width: 100%; height: auto; }
.home-company {
  background: var(--paper);
  color: var(--ink);
}
.home-section-kicker { margin-bottom: 18px; color: var(--slate); font-size: 12px; font-weight: 600; line-height: 1.5; }
.home-company-copy p { max-width: 600px; color: #526067; font-size: 16px; line-height: 1.9; }
.home-company-copy p + p { margin-top: 18px; }
.home-company-story { align-items: start; margin-top: clamp(36px, 4.4vw, 60px); }
.home-company-visual { margin: 0; min-width: 0; }
.home-company-image { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--slate); }
.home-company-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 1200ms cubic-bezier(.22, 1, .36, 1); }
.home-company-image-label { position: absolute; left: 0; bottom: 0; max-width: 90%; padding: 17px 23px; border-top: 2px solid var(--sand); background: var(--ink); color: #fff; font-size: 12px; font-weight: 500; }
.home-company-visual figcaption { margin-top: 12px; color: #647078; font-size: 11px; line-height: 1.6; }
.home-company-principles { min-width: 0; }
/* The numbers hang on the centre line; the text starts one column in. */
.home-company-principles article { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: var(--grid-gap); padding-block: 25px; border-top: 1px solid #4e5b622b; }
.home-company-principles article > div { grid-column: 2 / -1; }
.home-company-principles article:last-of-type { border-bottom: 1px solid #4e5b622b; }
.home-principle-number { padding-top: 3px; color: #826b53; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.home-company-principles h3 { font-size: 18px; font-weight: 600; line-height: 1.4; letter-spacing: -.02em; }
.home-company-principles article p { margin-top: 10px; color: #526067; font-size: 14px; line-height: 1.8; }
.home-company-principles > .text-link { margin-top: 20px; }
.home-motion-active .home-company-visual.home-motion-pending img { transform: scale(1.045); }
.home-dark-link { flex-shrink: 0; color: var(--ink); font-size: 13px; }
.home-dark-link > span { font-size: 21px; }
.home-dark-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.home-company a:focus-visible,
.home-platforms a:focus-visible,
.home-platforms button:focus-visible,
.home-configuration button:focus-visible { outline-color: var(--slate); }

.home-platforms { background: #f6f5ef; color: var(--ink); }
.home-section-heading-row { row-gap: 14px; }
.home-section-intro .home-section-heading { margin-bottom: 0; }
.home-platform-grid {
  --layout-row-span: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  margin-top: 40px;
}
.home-platform-card {
  min-width: 0;
  border: 1px solid #4e5b6229;
  background: var(--paper);
}
.home-platform-media { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.home-platform-media:focus-visible { outline-offset: -5px; }
.home-platform-copy h3 a:is(:hover, :focus-visible) { text-decoration: underline; text-underline-offset: .14em; }
.home-platform-media img { width: 100%; height: 100%; object-fit: contain; }
.home-platform-copy { --layout-row-span: 3; padding: 25px 25px 0; }
.home-platform-copy h3 { font-size: 24px; font-weight: 600; line-height: 1.25; letter-spacing: -.025em; }
.home-platform-copy h3 a > span { margin-left: 8px; color: #526067; font-size: 14px; font-weight: 400; letter-spacing: 0; white-space: nowrap; }
.home-platform-copy > p { margin-top: 14px; margin-bottom: 24px; color: #526067; font-size: 14px; line-height: 1.8; }
.home-platform-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 55px;
  margin-top: auto;
  align-self: stretch;
  padding-block: 16px;
  border-top: 1px solid #4e5b6229;
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 600;
}
.home-platform-link > span { font-size: 20px; line-height: 1; }
.home-platform-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.home-imagery-note { margin-top: 22px; color: #647078; font-size: 12px; line-height: 1.7; }

.home-production { background: var(--ink-light); color: var(--paper); }
.home-production .home-section-kicker { color: var(--sand-light); }
.home-arslon, .home-production { --section-action-color: var(--sand-light); --section-action-hover: var(--ink); }
.home-production-copy > p { max-width: 600px; color: #bdc7cc; font-size: 16px; line-height: 1.9; }

/* Four stages on one line. Each stage starts on a grid line, three columns wide. */
.home-process {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--grid-gap);
  margin: clamp(40px, 5vw, 68px) 0 0;
  padding: 0;
  list-style: none;
}
.home-process::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--sand-light), #ffffff38 34%, #ffffff38);
  transform-origin: left center;
}
.home-process-stage { --layout-row-span: 5; position: relative; min-width: 0; padding-top: 30px; }
.home-process-stage::before { content: ''; position: absolute; top: 0; left: 0; width: 7px; height: 7px; background: var(--sand-light); }
.home-process-number { display: block; color: var(--sand-light); font-size: 13px; font-weight: 600; line-height: 1.5; font-variant-numeric: tabular-nums; }
.home-process-stage h3 { margin-top: 8px; color: #fff; font-size: clamp(19px, 1.7vw, 23px); font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
/* One treatment for four different catalogue photographs; colour returns on hover. */
.home-process-photo { position: relative; overflow: hidden; aspect-ratio: 3 / 2; margin: 22px 0 0; background: var(--slate); }
.home-process-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06) brightness(.94); transition: filter 600ms ease, transform 1200ms cubic-bezier(.22, 1, .36, 1); }
.home-process-photo--high img { object-position: 50% 30%; }
.home-process-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(170, 143, 113, .36), rgba(22, 27, 30, .5)); mix-blend-mode: multiply; pointer-events: none; transition: opacity 600ms ease; }
.home-process-stage > p { margin-top: 20px; color: #d6dfe3; font-size: 15px; line-height: 1.7; }
.home-process-stage ul { margin: 18px 0 0; padding: 0; list-style: none; }
.home-process-stage ul li { position: relative; padding: 11px 0 11px 17px; border-top: 1px solid #ffffff1f; color: #bdc7cc; font-size: 13.5px; line-height: 1.6; }
.home-process-stage ul li::before { content: ''; position: absolute; top: 20px; left: 0; width: 5px; height: 5px; background: var(--sand); }
.home-production-note { margin-top: clamp(28px, 3.4vw, 44px); color: #aab5ba; font-size: 11px; line-height: 1.7; }
@media (hover: hover) and (pointer: fine) {
  .home-process-stage:hover .home-process-photo img { filter: none; transform: scale(1.03); }
  .home-process-stage:hover .home-process-photo::after { opacity: 0; }
}
/* The line draws once and the stages follow it in order. */
.home-motion-active .home-process[data-home-reveal].home-motion-pending { opacity: 1; transform: none; }
.home-motion-active .home-process.home-motion-pending::before { transform: scaleX(0); }
.home-motion-active .home-process.home-motion-pending .home-process-stage { opacity: 0; transform: translate3d(0, 20px, 0); }
.home-motion-active .home-process.home-motion-revealed::before { transition: transform 1500ms cubic-bezier(.22, 1, .36, 1); }
.home-motion-active .home-process.home-motion-revealed .home-process-stage {
  transition: opacity 700ms ease, transform 900ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--stage) * 150ms + 120ms);
}

@media (max-width: 950px) {
  .home-company-story { row-gap: 32px; }
  .home-company-principles article { padding-block: 20px; gap: 12px; grid-template-columns: 21px minmax(0, 1fr); }
  .home-company-principles h3 { font-size: 16px; }
  .home-company-principles article p { font-size: 13px; }
  .home-process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-process::before { display: none; }
  .home-process-stage { border-top: 1px solid #ffffff38; }
}
@media (521px <= width <= 950px) {
  .home-process-stage:nth-child(n + 3) { margin-top: 44px; }
}
@media (max-width: 800px) {
  .home-company-image { aspect-ratio: 16 / 10; }
  .home-company-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
  .home-company-principles article { display: block; padding-top: 20px; padding-bottom: 0; }
  .home-company-principles h3 { margin-top: 12px; }
  .home-company-principles article > div { grid-column: auto; }
  .home-company-principles article:last-of-type { border-bottom: 0; }
  .home-company-principles > .text-link { grid-column: 1 / -1; margin-top: 0; }
}
@media (521px <= width <= 800px) {
  .home-company-principles { row-gap: 0; }
  .home-company-principles article {
    display: grid;
    grid-row: span 3;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: subgrid;
    row-gap: 0;
  }
  .home-company-principles article > div {
    display: grid;
    grid-row: span 2;
    grid-template-rows: subgrid;
    align-items: start;
  }
  .home-company-principles > .text-link { margin-top: 24px; }
}
@media (max-width: 520px) {
  .home-company-story { margin-top: 32px; }
  .home-company-image { aspect-ratio: 4 / 3; }
  .home-company-image-label { padding: 13px 16px; font-size: 11px; }
  .home-company-principles { display: block; }
  .home-company-principles article { display: grid; grid-template-columns: 25px minmax(0, 1fr); column-gap: 13px; padding-block: 22px; }
  .home-company-principles h3 { margin-top: 0; font-size: 17px; }
  .home-company-principles article p { font-size: 14px; }
  .home-process { grid-template-columns: minmax(0, 1fr); row-gap: 36px; }
  .home-process-photo { aspect-ratio: 16 / 9; }
}
@media (prefers-reduced-motion: reduce) {
  .home-company-image img, .home-process-photo img, .home-process-photo::after,
  .home-process::before, .home-process-stage { transform: none !important; opacity: 1 !important; transition: none !important; }
}
@media print {
  .home-process::before, .home-process-stage { transform: none !important; opacity: 1 !important; }
}

.home-configuration { background: #e5ddd1; color: var(--ink); }
.home-configuration-grid { align-items: start; }
.home-configuration-visual { min-width: 0; margin: 0; }
.home-configuration-visual img { width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: contain; }
.home-configuration-visual figcaption { margin-top: 16px; color: #526067; font-size: 12px; line-height: 1.6; }
.home-configuration-copy { min-width: 0; }
.home-configuration-grid .home-section-heading { font-size: clamp(30px, 3vw, 44px); }
.home-configuration-copy > p { max-width: 570px; color: #4e5b62; font-size: 15px; line-height: 1.85; }
.home-configuration-copy > p + p { margin-top: 14px; }

@media (max-width: 1100px) {
  .home-platform-grid { column-gap: 18px; }
  .home-platform-copy { padding: 21px 20px 0; }
  .home-platform-copy h3 { font-size: 21px; }
}

@media (max-width: 800px) {
  .home-title { font-size: clamp(40px, 7.4vw, 62px); }
  .home-hero-copy { font-size: 16px; }
  .home-company-copy p { font-size: 15px; }
  .home-platform-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .home-platform-card { grid-row: auto; grid-template-rows: auto; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .home-platform-copy { display: flex; flex-direction: column; grid-row: auto; align-self: stretch; align-items: stretch; }
  .home-platform-media { height: 100%; aspect-ratio: auto; min-height: 230px; }
  .home-platform-media img { object-fit: contain; }
  .home-configuration-visual { max-width: 620px; }
}

@media (max-width: 520px) {
  .home-inner { width: 90%; }
  .home-hero-media::before { background-position: center 72%; background-size: 94% auto; }
  .home-arslon-gallery { grid-template-columns: minmax(0, 1fr); --home-reveal-delay: 0ms; }
  .home-arslon .home-section-heading-row { gap: 10px; }
  .home-hero {
    padding-top: calc(var(--header-reserved-height, 94px) + 24px);
    padding-bottom: 28px;
  }
  .home-hero-eyebrow { margin-bottom: 18px; font-size: 11px; }
  .home-title { font-size: clamp(32px, 8.8vw, 42px); }
  .home-hero-copy { margin-top: 20px; font-size: 14px; }
  .home-hero-actions { gap: 18px 22px; margin-top: 24px; }
  .home-hero .home-primary-link { min-height: 48px; font-size: 13px; }
  .home-secondary-link { font-size: 13px; }
  .home-hero-image-note { right: 5%; bottom: 16px; font-size: 10px; }
  .home-section-heading { font-size: 30px; }
  .home-platform-grid { margin-top: 28px; }
  .home-platform-card { display: flex; flex-direction: column; align-items: stretch; }
  .home-platform-media { height: auto; min-height: 0; aspect-ratio: 1672 / 941; }
  .home-platform-copy { padding-inline: 22px; }
  .home-platform-copy h3 { font-size: 23px; }
  .home-process-stage { display: block; grid-row: auto; }
  .home-configuration-grid .home-section-heading { font-size: 30px; }
}

@media (min-width: 560px) and (max-height: 500px) {
  .home-hero {
    padding-top: calc(var(--header-reserved-height, 94px) + 16px);
    padding-bottom: 20px;
  }
  .home-hero-eyebrow { margin-bottom: 10px; font-size: 12px; }
  .home-title { font-size: clamp(30px, 7dvh, 42px); }
  .home-hero-copy { margin-top: 14px; font-size: 14px; line-height: 1.5; }
  .home-hero-actions { margin-top: 18px; gap: 20px 24px; }
  .home-hero .home-primary-link { min-height: 44px; padding-block: 11px; font-size: 13px; }
}

/* Preserve readable, reachable content when a very short window or zoomed-in
   phone cannot accommodate the normal viewport-height presentation. */
@media (max-width: 559px) and (max-height: 500px) {
  .home-hero { height: auto; min-height: 100svh; min-height: 100dvh; }
}

/* Content stays in its final layout. Motion is an optional homepage enhancement. */
.home-motion-active {
  --home-motion-ease: cubic-bezier(.22, 1, .36, 1);
}
.home-motion-active .home-hero-media::before {
  inset-block: -56px;
  transform: translate3d(0, var(--home-hero-travel, 0px), 0);
}
.home-motion-active .home-hero-media.home-parallax-visible::before { will-change: transform; }
.home-motion-active [data-home-reveal].home-motion-pending {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}
.home-motion-active [data-home-reveal].home-motion-revealed {
  opacity: 1;
  transform: none;
  transition: opacity 760ms ease, transform 960ms var(--home-motion-ease),
    background-color 250ms ease, color 250ms ease, border-color 250ms ease;
  transition-delay: var(--home-reveal-delay, 0ms), var(--home-reveal-delay, 0ms), 0ms, 0ms, 0ms;
}
.home-hero .home-title { --home-reveal-delay: 90ms; }
.home-hero .home-hero-copy { --home-reveal-delay: 170ms; }
.home-hero .home-hero-actions { --home-reveal-delay: 250ms; }
.home-company-copy { --home-reveal-delay: 120ms; }
.home-platform-card:nth-child(2) { --home-reveal-delay: 90ms; }
.home-platform-card:nth-child(3) { --home-reveal-delay: 180ms; }
.home-platform-media img {
  transition: transform 1200ms cubic-bezier(.22, 1, .36, 1);
  transition-delay: var(--home-reveal-delay, 0ms);
}
.home-motion-active .home-platform-card.home-motion-pending .home-platform-media img {
  transform: scale(1.065);
  transition: none;
}
.home-platform-link > span,
.home-page .contact-page-link > span {
  transition: transform 360ms cubic-bezier(.22, 1, .36, 1);
}

.home-motion-active [data-home-reveal="vehicle"].home-motion-pending {
  transform: translate3d(-28px, 12px, 0);
}
.home-configuration-copy { --home-reveal-delay: 130ms; }
.home-page .cta-band-action { --home-reveal-delay: 150ms; }

@media (hover: hover) and (pointer: fine) {
  .home-platform-card:hover .home-platform-media img { transform: scale(1.035); transition-delay: 0ms; }
  .home-platform-link:hover > span,
  .home-page .contact-page-link:hover > span { transform: translate(3px, -3px); }
}
.home-platform-card:focus-within .home-platform-media img { transform: scale(1.035); transition-delay: 0ms; }
@media (max-width: 800px) {
  .home-platform-card:nth-child(n), .home-configuration-copy { --home-reveal-delay: 0ms; }
  .home-motion-active [data-home-reveal="vehicle"].home-motion-pending { transform: translate3d(0, 24px, 0); }
}
@media (max-width: 520px) {
  .home-company-copy,
  .home-page .cta-band-action { --home-reveal-delay: 0ms; }
}

/* Keyboard navigation, restored scroll, and preference changes settle immediately. */
.home-motion-active .home-motion-instant,
.home-motion-active .home-motion-instant *,
.home-motion-active .home-motion-instant::before,
.home-motion-active .home-motion-instant::after { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .home-page [data-home-reveal] { opacity: 1 !important; transform: none !important; }
  .home-page .home-hero-media::before { inset: 0; transform: none !important; }
  .home-page .home-platform-media img,
  .home-page .home-platform-link > span,
  .home-page .contact-page-link > span { transform: none !important; transition: none !important; }
}
@media print {
  .home-page [data-home-reveal] { opacity: 1 !important; transform: none !important; }
  .home-page .home-hero-media::before { transform: none !important; }
}
