/* ============================================================
   BLUAMOEBA — ABOUT / EDITORIAL EDITION
   Page-specific art direction. CMS selectors and the shared shell
   remain untouched; this layer only controls composition and finish.
   ============================================================ */

:root {
  --page-bg: #e7e7e7;
  --paper: #f2f2f2;
  --ink: #151513;
  --muted: #66655f;
  --muted-2: #8a8982;
  --line: rgba(21, 21, 19, 0.22);
  --line-soft: rgba(21, 21, 19, 0.11);
  --accent: #151513;
  --nav-fg: #151513;
  --nav-muted: rgba(21, 21, 19, 0.68);
  --nav-hover-bg: rgba(21, 21, 19, 0.07);
  --cta-border: rgba(21, 21, 19, 0.28);
  --cta-hover-bg: #151513;
  --cta-hover-fg: #efeee8;
  --maxw: 1600px;
  --gutter: clamp(22px, 4.1vw, 72px);
}

html,
body {
  background: var(--page-bg) !important;
}

body {
  font-feature-settings: "kern" 1, "ss01" 1;
}

.wrap {
  max-width: var(--maxw);
  padding-inline: var(--gutter);
}

::selection {
  color: var(--page-bg);
  background: var(--ink);
}

/* ── Shared navigation, recut as an editorial masthead ── */
header {
  mix-blend-mode: normal;
}

.nav {
  max-width: var(--maxw);
  min-height: 82px;
}

header .brand {
  left: var(--gutter);
  top: 27px;
}

header .brand-mark {
  aspect-ratio: 1920 / 539;
  height: clamp(34px, 3.5vw, 42px);
  filter: grayscale(1) contrast(1.15);
}

/* ── Editorial cover ── */
#top {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--page-bg);
  border-bottom: 0;
}

#top .hero-content {
  position: relative;
  inset: auto;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(380px, 0.75fr);
  gap: clamp(38px, 6vw, 104px);
  align-items: end;
  max-width: var(--maxw);
  min-height: max(780px, 100svh);
  margin: 0 auto;
  padding: clamp(132px, 15vh, 176px) var(--gutter) clamp(44px, 6.5vh, 80px);
  pointer-events: auto;
}

.au-cover-copy {
  position: relative;
  z-index: 3;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.au-image-caption {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

#top .hero-headline-block {
  max-width: none;
  margin-top: 0;
  padding-top: 0;
}

#top .hero-title {
  position: relative;
  z-index: 2;
  max-width: 10ch;
  font-family: "Aeonik", sans-serif;
  font-size: clamp(62px, 8.4vw, 142px);
  font-weight: 500;
  line-height: 0.82;
  letter-spacing: -0.075em;
  color: var(--ink);
  text-wrap: balance;
  transform: translate3d(var(--px, 0px), var(--py, 0px), 0);
}

#top .hero-title .dim {
  color: inherit;
}

/* Per-line treatment: the first two lines ("Fluidic." / "Dynamic.")
   read oversized, the trailing lines recede into an editorial subhead. */
#top .hero-title .au-line {
  display: block;
}

#top .hero-title .au-line--lead {
  font-size: 1.05em;
  font-weight: 600;
  letter-spacing: -0.085em;
}

#top .hero-title .au-line:not(.au-line--lead) {
  font-size: 0.56em;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.02;
  color: var(--ink);
}

.au-cover-art {
  position: relative;
  align-self: end;
  margin: 0;
  /* +25% larger, anchored at the base so it grows toward the top. */
  transform-origin: 50% 100%;
  transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--sy, 0px)), 0) scale(1.25);
  will-change: transform;
}

/* The composed sculpture PNG carries its own circles/guides, so the
   decorative CSS rings are retired. */
.au-cover-art::before,
.au-cover-art::after {
  display: none;
}

.au-cover-art img {
  width: 100%;
  height: clamp(570px, 78vh, 880px);
  object-fit: contain;
  object-position: 50% 100%;
  border-radius: 0;
  filter: saturate(0.9) contrast(1.02);
}

.au-cover-art .au-image-caption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

/* ── Opening text ── */
.au-intro-copy {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 0;
  border-bottom: 0;
  display: grid;
  align-items: center;
}

.au-intro-copy-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  pointer-events: none;
}

.au-intro-copy-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.au-intro-copy-grid {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  width: 100%;
  padding-block: clamp(72px, 11vh, 128px);
}

.au-intro-copy .au-hero-right {
  width: min(100%, 640px);
  margin-left: auto;
  max-width: none;
  padding: 0;
}

.au-intro-copy-glass {
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: clamp(12px, 1.4vw, 18px);
  background: rgba(255, 255, 255, 0.34);
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: 0 24px 60px rgba(16, 16, 16, 0.14);
}

.au-intro-copy .au-hero-body {
  max-width: none;
  margin: 0;
  color: var(--ink);
  font-size: clamp(24px, 3vw, 47px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

/* ── Dubai studio — fade statement + office reveal ───────────── */
.au-sequence {
  position: relative;
  overflow: hidden;
  background: var(--page-bg);
  border-bottom: 0;
}

.au-seq-stage {
  position: relative;
  width: min(100%, var(--maxw));
  min-height: 100svh;
  margin-inline: auto;
  padding-inline: var(--gutter);
  overflow: hidden;
}

.au-seq-fade {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  top: clamp(48px, 8vh, 96px);
  z-index: 2;
  max-width: 18ch;
  margin: 0;
  color: var(--ink);
  font-weight: 500;
  font-size: clamp(28px, 4.2vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  text-wrap: balance;
  will-change: opacity, transform;
}

/* Studio image sits close under the fade statement. */
.au-seq-lower {
  position: absolute;
  left: 0;
  right: 0;
  top: clamp(160px, 24vh, 248px);
  bottom: clamp(28px, 4vh, 48px);
  padding-inline: var(--gutter);
  display: flex;
  flex-direction: column;
}

.au-seq-reveal {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  will-change: clip-path;
}

.au-seq-reveal img {
  display: block;
  width: 100%;
  height: 105%;
  min-height: calc(clamp(360px, 58vh, 720px) * 1.05);
  object-fit: cover;
  object-position: 50% 50%;
  clip-path: inset(5% 0 0 0);
  filter: saturate(0.82) contrast(1.04);
}

.au-intro-copy .au-hero-body + .au-hero-body {
  color: rgba(21, 21, 19, 0.72);
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.58;
  letter-spacing: -0.01em;
}

/* ── Dubai studio ── */
.au-image-section {
  /* No top padding: the image butts against the sequence so the drawn
     line flows straight into the split seam with no gap. */
  padding: 0 0 clamp(72px, 8vw, 120px);
  overflow: hidden;
  border-bottom: 0;
}

.au-image-listing {
  display: block;
}

.au-image-entry {
  position: relative;
  margin: 0;
  overflow: hidden;
}

/* Split-open reveal: two page-coloured panels part from a central seam
   (the continuation of the drawn line). Only active once JS arms them. */
.au-office-curtain {
  position: absolute;
  top: -1px;
  bottom: -1px;
  width: 51%;
  z-index: 3;
  display: none;
  background: var(--page-bg);
  pointer-events: none;
}

.au-office-curtain--l { left: 0; }
.au-office-curtain--r { right: 0; }

.au-office-seam {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: 50%;
  width: 3px;
  z-index: 4;
  display: none;
  background: var(--ink);
  transform: translateX(-50%);
  pointer-events: none;
}

.au-office-armed .au-office-curtain,
.au-office-armed .au-office-seam {
  display: block;
}

.au-studio-note {
  max-width: 42ch;
  margin: clamp(12px, 1.4vw, 18px) 0 0 auto;
}

.au-studio-note p {
  color: var(--ink);
  font-size: clamp(13px, 1.08vw, 17px);
  line-height: 1.45;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}

.au-image-entry img {
  display: block;
  width: 100%;
  height: clamp(240px, 30vw, 430px);
  border-radius: 0;
  object-fit: cover;
  object-position: 50% center;
  filter: saturate(0.82) contrast(1.04);
}

/* ── Shared editorial section grammar ── */
.au-section {
  position: relative;
  padding: clamp(94px, 12vw, 184px) 0;
  border-bottom: 0;
}

.au-section-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(48px, 8vw, 144px);
  align-items: start;
}

.au-section-heading {
  max-width: 12ch;
  color: var(--ink);
  font-size: clamp(40px, 5.7vw, 88px);
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: -0.06em;
}

/* Agency statement and copy. */
.au-section-left {
  position: sticky;
  top: 112px;
}

.au-section-right {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.au-section--agency .au-body--lead {
  grid-column: 1 / -1;
  grid-row: 1;
  max-width: 31ch;
  color: var(--ink);
  font-size: clamp(24px, 3.1vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

.au-body--agency-left {
  grid-column: 1;
  grid-row: 2;
}

.au-body {
  color: var(--muted);
  font-size: clamp(15px, 1.17vw, 18px);
  line-height: 1.62;
}

.au-bullets {
  grid-column: 1 / -1;
  grid-row: 5;
  margin-top: clamp(24px, 4vw, 60px);
  border-top: 0;
}

.au-bullet {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 18px 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  font-size: clamp(15px, 1.4vw, 21px);
  line-height: 1.25;
}

.au-bullet::before {
  content: "↳";
  color: var(--muted-2);
}

.au-bullet::after {
  content: "360°";
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.14em;
}

/* Idea-first content continues directly beneath the agency copy. */
.au-idea-heading-inline {
  grid-column: 1 / -1;
  grid-row: 3;
  max-width: 10ch;
  margin-top: 0;
  font-size: clamp(40px, 5vw, 72px);
}

.au-idea-paragraph {
  grid-column: 1 / -1;
  grid-row: 4;
  max-width: 52ch;
  margin-top: clamp(8px, 1.2vw, 18px);
}

/* Motion ── */
.au-cover-art img {
  animation: au-cover-in 1.15s cubic-bezier(.22, 1, .36, 1) both;
}

/* The whole foreground copy rises from the bottom of the viewport up
   to its (now vertically-centered) rest position. */
.au-cover-copy {
  animation: au-copy-in 1.2s cubic-bezier(.22, 1, .36, 1) 0.05s both;
  will-change: transform, opacity;
}

@keyframes au-cover-in {
  from { opacity: 0; transform: scale(1.025); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes au-copy-in {
  from { opacity: 0; transform: translate3d(0, 46vh, 0); }
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* ── Ghost echo — lands behind the hero image ───────────────────
   "Fluidic" / "Dynamic": soft oversized white words that fly in from
   opposite sides and settle behind the sculpture. Three independent
   transform layers keep entrance, ambient drift and parallax from
   clobbering each other: outer = pointer/scroll parallax (+ vertical
   centering), inner = ambient drift, word = directional entrance. */
.au-hero-ghost {
  position: absolute;
  top: 50%;
  left: 0;
  right: calc(var(--gutter) * -0.35);
  z-index: 0;
  display: block;
  pointer-events: none;
  user-select: none;
  text-align: right;
  font-family: "Aeonik", sans-serif;
  font-weight: 700;
  font-size: clamp(66px, 10.5vw, 190px);
  line-height: 0.82;
  letter-spacing: -0.07em;
  white-space: nowrap;
  transform: translate3d(var(--px, 0px), calc(-50% + var(--py, 0px) + var(--sy, 0px)), 0);
  will-change: transform;
}

.au-hero-ghost__inner {
  display: block;
  animation: au-ghost-drift 15s ease-in-out infinite alternate;
}

/* word = scroll-driven horizontal drift (opposite directions);
   fx (child) = one-time directional fly-in entrance. */
.au-hero-ghost__word {
  display: block;
  color: rgba(255, 255, 255, 0.2);
  text-shadow: 0 4px 44px rgba(255, 255, 255, 0.13);
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1);
  transform: translate3d(var(--wx, 0px), 0, 0);
  will-change: transform;
}

.au-hero-ghost__fx {
  display: block;
  will-change: transform, opacity;
}

.au-hero-ghost__word--from-right .au-hero-ghost__fx {
  animation: au-ghost-in-right 1.35s cubic-bezier(.22, 1, .36, 1) 0.1s both;
}

.au-hero-ghost__word--from-left .au-hero-ghost__fx {
  animation: au-ghost-in-left 1.35s cubic-bezier(.22, 1, .36, 1) 0.18s both;
}

@keyframes au-ghost-drift {
  from { transform: translate3d(0, 0.9%, 0); }
  to { transform: translate3d(0, -2.4%, 0); }
}

@keyframes au-ghost-in-right {
  from { opacity: 0; transform: translateX(82%); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes au-ghost-in-left {
  from { opacity: 0; transform: translateX(-82%); }
  to { opacity: 1; transform: translateX(0); }
}

/* ── Responsive ── */
@media (max-width: 1080px) {
  #top .hero-content {
    grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
    min-height: 820px;
  }

  #top .hero-title {
    font-size: clamp(58px, 8.8vw, 98px);
  }

}

@media (max-width: 780px) {
  header .brand {
    left: var(--gutter);
    top: 23px;
  }

  #top .hero-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding-top: 116px;
  }

  .au-cover-copy {
    min-height: 440px;
  }

  #top .hero-headline-block {
    padding-top: 100px;
  }

  #top .hero-title {
    max-width: 9ch;
    font-size: clamp(56px, 15vw, 98px);
  }

  .au-cover-art img {
    height: min(128vw, 720px);
  }

  .au-intro-copy {
    min-height: 100vh;
    min-height: 100dvh;
  }

  .au-intro-copy-grid {
    justify-content: stretch;
  }

  .au-intro-copy .au-hero-right {
    width: 100%;
  }

  .au-intro-copy .au-hero-body {
    font-size: clamp(28px, 6.8vw, 44px);
  }

  .au-section-grid {
    grid-template-columns: 1fr;
  }

  .au-section-left {
    position: static;
  }

  .au-seq-fade {
    max-width: 16ch;
    font-size: clamp(26px, 7vw, 40px);
  }

  .au-seq-lower {
    top: clamp(140px, 26svh, 200px);
    bottom: 24px;
  }

  .au-seq-reveal img {
    min-height: calc(clamp(300px, 48svh, 520px) * 1.05);
  }

  .au-studio-note {
    margin: clamp(10px, 2.4vw, 16px) 0 24px;
  }

  .au-studio-note p {
    max-width: 40ch;
    font-size: clamp(14px, 3.8vw, 19px);
  }

  .au-section-right {
    grid-template-columns: 1fr;
  }

  .au-body--lead,
  .au-body--agency-left,
  .au-idea-heading-inline,
  .au-idea-paragraph,
  .au-bullets {
    grid-column: auto;
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .au-cover-art::before {
    top: -12px;
    right: -12px;
  }

  .au-image-entry img {
    height: clamp(210px, 58vw, 280px);
  }

  .au-bullet {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .au-bullet::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .au-cover-art img,
  .au-cover-copy,
  .au-hero-ghost__inner,
  .au-hero-ghost__fx {
    animation: none;
  }

  .au-cover-art {
    transform: none;
  }

  .au-seq-fade,
  .au-seq-reveal,
  .au-studio-note {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
  }

  .au-seq-reveal {
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
}
