/* Studio page. Colours only through token custom properties; logical properties so one sheet serves RTL and LTR.
   The contour layers, sun dots and process steps are the shared motifs and `.steps--full` (base.css); this sheet
   only places and tunes them. No box clips its contents: a contour layer takes its host's radius itself. */

/* ---------- Intro ---------- */

.studio-intro {
  padding-block-start: calc(var(--section) * 0.75);
}
.studio-intro__title {
  max-width: 17ch;
  margin-block-start: var(--space-l);
}
.studio-intro__foot {
  align-items: end;
  margin-block-start: var(--space-3xl);
}
@media (min-width: 64.01rem) {
  .studio-facts {
    grid-column: 8 / span 5;
  }
}
.studio-facts {
  display: flex;
  flex-direction: column;
}
.studio-facts > div {
  display: grid;
  grid-template-columns: minmax(7rem, 2fr) 5fr;
  gap: var(--space-m);
  padding-block: var(--space-s);
  border-block-start: var(--rule);
}
.studio-facts > div:last-child {
  border-block-end: var(--rule);
}
.studio-facts dt {
  font-size: var(--type-caption-size);
  line-height: var(--type-body-line-height);
  color: var(--color-text-muted);
}

.studio-band {
  height: clamp(8rem, 17vw, 15rem);
  margin-block-start: calc(var(--section) * 0.7);
}
.studio-band__lines {
  --contours: 0.32;
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--color-text) 30%, var(--color-text) 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, var(--color-text) 30%, var(--color-text) 70%, transparent);
}
.studio-band__sun {
  --sun: clamp(0.9rem, 1.5vw, 1.4rem);
  position: absolute;
  inset-block-start: 34%;
  inset-inline-end: 21%;
}

/* ---------- Idea: wind, sand, light ---------- */

.pillars {
  row-gap: var(--space-3xl);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
}
.pillar__tile {
  aspect-ratio: 8 / 5;
  margin-block-end: var(--space-m);
  border: var(--rule);
  border-radius: var(--radius-m);
  background: var(--color-surface);
}
.pillar__lines {
  --contours: 0.5;
  /* Inside the tile's 1px border. */
  border-radius: calc(var(--radius-m) - 1px);
}
.pillar__name {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line-height);
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.pillar__name:lang(ar) {
  letter-spacing: 0;
}
.pillar__title {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line-height);
  font-weight: var(--type-h3-weight);
}

/* Light: the same sun dot under the four phase palettes, each strip in its own phase. The end strips round their
   own outer corners, so the tile needs no clipping. */
.pillar__phases {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pillar__phases li {
  position: relative;
  background: var(--color-background);
  color: var(--color-text-muted);
}
.pillar__phases li:first-child {
  border-start-start-radius: calc(var(--radius-m) - 1px);
  border-end-start-radius: calc(var(--radius-m) - 1px);
}
.pillar__phases li:last-child {
  border-start-end-radius: calc(var(--radius-m) - 1px);
  border-end-end-radius: calc(var(--radius-m) - 1px);
}
.pillar__phases li + li {
  border-inline-start: 1px solid var(--color-line);
}
.pillar__sun {
  --sun: 0.85rem;
  position: absolute;
  inset-inline-start: calc(50% - var(--sun) / 2);
}
.pillar__phases [data-phase="dawn"] .pillar__sun {
  inset-block-start: 62%;
}
.pillar__phases [data-phase="noon"] .pillar__sun {
  /* High, but below the phase name on short tiles. */
  inset-block-start: max(16%, 2.75rem);
}
.pillar__phases [data-phase="dusk"] .pillar__sun {
  inset-block-start: 54%;
}
.pillar__phases [data-phase="night"] .pillar__sun {
  inset-block-start: 84%;
  opacity: 0.35;
}
.pillar__phase-name {
  position: absolute;
  inset-block-start: var(--space-s);
  inset-inline: 0;
  text-align: center;
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line-height);
}

/* ---------- Founder ---------- */

.studio-founder .grid {
  align-items: center;
}
@media (min-width: 64.01rem) {
  .studio-founder__text {
    grid-column: 7 / span 6;
  }
}
.studio-founder__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}
.studio-founder__text .t-eyebrow {
  margin-block-end: calc(-1 * var(--space-s));
}

.portrait {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}
/* An upright 4:5 slot, warm and lit low from the side the sun sits on (the inline end). */
.portrait__frame {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-m);
  background:
    radial-gradient(120% 70% at 100% 72%, color-mix(in oklab, var(--color-mud-lit) 70%, transparent), transparent 70%),
    linear-gradient(to bottom, var(--color-background), color-mix(in oklab, var(--color-mud-lit) 45%, var(--color-background)));
}
/* Gradient positions have no logical form: mirror the light for right-to-left. */
[dir="rtl"] .portrait__frame {
  background:
    radial-gradient(120% 70% at 0% 72%, color-mix(in oklab, var(--color-mud-lit) 70%, transparent), transparent 70%),
    linear-gradient(to bottom, var(--color-background), color-mix(in oklab, var(--color-mud-lit) 45%, var(--color-background)));
}
/* Dunes along the foot of the slot; the layer's own radius rounds the frame's lower corners. */
.portrait__dunes {
  --contours: 0.45;
  inset-block-start: auto;
  height: 45%;
  object-position: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--color-text) 45%);
  mask-image: linear-gradient(to bottom, transparent, var(--color-text) 45%);
}
.portrait__sun {
  --sun: clamp(1rem, 1.8vw, 1.6rem);
  position: absolute;
  inset-block-start: 55%;
  inset-inline-end: 14%;
}
.portrait__sitter {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--color-mud);
  opacity: 0.55;
}
.portrait__label {
  position: absolute;
  inset-block-start: var(--space-l);
  inset-inline: var(--space-l);
}
.portrait__label .pending {
  background: var(--color-surface);
}

.founder-id {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding-block: var(--space-l);
  border-block: var(--rule);
}
.founder-id__name {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line-height);
  font-weight: var(--font-weight-medium);
}
.founder-id__role {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line-height);
  color: var(--color-text-muted);
}

/* ---------- Process (the shared `.steps--full`) ---------- */

.studio-process__head {
  margin-block-end: 0;
}
@media (min-width: 64.01rem) {
  .studio-process__head {
    position: sticky;
    inset-block-start: var(--space-2xl);
    align-self: start;
  }
  .studio-process__steps {
    grid-column: 6 / span 7;
  }
}

/* ---------- Values ---------- */

.values,
.gulf-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.value {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding-block-start: var(--space-l);
  border-block-start: 1px solid var(--color-text);
}
.value__title,
.gulf-points__title {
  font-size: var(--type-lead-size);
  line-height: var(--type-lead-line-height);
  font-weight: var(--font-weight-medium);
}

/* ---------- Arabic first: a night band ---------- */

.studio-gulf {
  background: var(--color-background);
  color: var(--color-text);
}
.studio-gulf__top {
  align-items: end;
}
.studio-gulf__top .section__head {
  margin-block-end: 0;
}
@media (min-width: 64.01rem) {
  .specimen {
    grid-column: 7 / span 6;
  }
}
.specimen {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: var(--space-s) var(--space-xl) var(--space-l);
  border: var(--rule);
  border-radius: var(--radius-m);
  background: var(--color-surface);
}
.specimen__line {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xs);
  padding-block: var(--space-l);
  border-block-end: var(--rule);
}
.specimen__line p {
  font-size: var(--type-h2-size);
  line-height: var(--type-h2-line-height);
  font-weight: var(--font-weight-light);
  text-wrap: balance;
}
@media (max-width: 40rem) {
  .specimen {
    padding-inline: var(--space-l);
  }
  .specimen__line p {
    font-size: var(--type-h3-size);
    line-height: var(--type-h3-line-height);
  }
  .pillar__tile {
    aspect-ratio: 2 / 1;
  }
}
.specimen__label,
.specimen__caption {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line-height);
  color: var(--color-text-muted);
}
.specimen__caption {
  padding-block-start: var(--space-m);
  font-family: var(--font-text);
}
.gulf-points {
  margin-block-start: var(--space-4xl);
  row-gap: var(--space-2xl);
}
.gulf-points li {
  display: flex;
  flex-direction: column;
  gap: var(--space-s);
  padding-block-start: var(--space-l);
  border-block-start: var(--rule);
}
.gulf-points__num {
  font-size: var(--type-caption-size);
  line-height: var(--type-caption-line-height);
  color: var(--color-accent-text);
  font-variant-numeric: tabular-nums;
}
.studio-gulf__more {
  margin-block-start: var(--space-2xl);
}

/* ---------- Contact ---------- */

.studio-cta {
  padding-block-end: 0;
}
.studio-cta .container {
  align-items: end;
}
.studio-cta__band {
  height: clamp(7rem, 13vw, 12rem);
  margin-block-start: calc(var(--section) * 0.8);
}
.studio-cta__lines {
  --contours: 0.28;
  object-position: top;
  -webkit-mask-image: linear-gradient(to bottom, transparent, var(--color-text) 60%);
  mask-image: linear-gradient(to bottom, transparent, var(--color-text) 60%);
}
.studio-cta__title {
  max-width: 14ch;
}
.studio-cta__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-l);
}
@media (min-width: 64.01rem) {
  .studio-cta__side {
    grid-column: 8 / span 5;
  }
}
@media (max-width: 40rem) {
  .studio-cta__actions .btn {
    flex: 1 1 100%;
  }
}
