/* etralward.com · round 4, direction B «القالب».
   The logo is a mould. Four verbs only: draw, fill, press, drop.
   Bands: tank duotone (hero) · cream (credentials) · three product inks · steel (process) · logo purple (contact) · dark (footer).
   Display Alyamama 900, body Fustat. No radius, no shadows, no glows. Self-only CSP: no inline styles. */

@font-face {
  font-family: "Alyamama";
  src: url("/fonts/alyamama-900.woff2") format("woff2");
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Fustat";
  src: url("/fonts/fustat.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
}

:root {
  --w-display: 900;
  --edge: max(var(--gut), calc((100vw - var(--wrap)) / 2));
  --lilac-soft: #E6D8EA;
}
html { overflow-x: clip; scroll-behavior: smooth; overscroll-behavior-x: none; } /* a sideways drag on the process line must not trigger the browser's swipe-back */
body { overflow-x: clip; }
h1, h2, h3 { font-weight: 900; }
a { color: inherit; }
img { display: block; }

/* ------------------------------------------------------------------ actions */
.act {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 30px;
  background: var(--accent); color: var(--dark);
  font: 700 18px/1.3 var(--f-body); text-decoration: none;
  transition: background-color var(--d-fast) var(--ease);
}
.act:hover { background: #F89DB8; }
.act:active { background: #EE6A90; }
.act__glyph { width: 22px; height: 22px; fill: currentColor; flex: none; }
.act-2 { font-weight: 600; text-underline-offset: 6px; text-decoration-thickness: 1px; min-height: 44px; display: inline-flex; align-items: center; }
.act-2:hover { text-decoration-thickness: 2px; }

/* --------------------------------------------------------------------- hero */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100svh; display: grid; grid-template-rows: auto 1fr;
  background: var(--hero-ink); color: var(--ground);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; transform-origin: 50% 40%; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(30, 8, 36, .45) 0, rgba(30, 8, 36, 0) 18%, rgba(30, 8, 36, 0) 42%, rgba(30, 8, 36, .78) 100%);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 24px var(--edge); }
.bar__name { font: 900 26px/1.3 var(--f-display); text-decoration: none; }
.bar__nav { display: flex; gap: 36px; font-weight: 600; font-size: 17px; }
.bar__nav a, .bar__tel { text-decoration: none; color: var(--lilac-soft); min-height: 44px; display: inline-flex; align-items: center; }
.bar__nav a:hover, .bar__tel:hover { color: var(--ground); text-decoration: underline; text-underline-offset: 8px; }
.bar__tel { font-weight: 600; font-size: 17px; }

.stage { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gut) clamp(40px, 6svh, 72px); }
.mould { position: relative; width: min(36vw, 470px, 50svh); }
.mould__svg { display: block; width: 100%; height: auto; overflow: visible; }
.mould__line { fill: none; stroke: var(--ground); stroke-width: .9; stroke-linejoin: round; opacity: .9; }
.mould__body { fill: var(--ground); }
.mould__tri { fill: var(--accent); transform-box: fill-box; transform-origin: 50% 50%; }
.mould__level { transform-box: fill-box; transform-origin: 50% 100%; }
.mould__line, .mould__body, .mould__tri { will-change: transform; }

.drop { position: absolute; top: 100%; left: 49.2%; width: 16px; margin-left: -8px; opacity: 0; pointer-events: none; transform-origin: 50% 0; }
.drop svg { display: block; width: 100%; height: auto; fill: var(--ground); }

.hero__title { margin-top: clamp(18px, 3.4svh, 34px); font-size: clamp(60px, 8vw, 118px); color: var(--ground); white-space: nowrap; }
.hero__title .w { display: inline-block; }
.hero__sub { margin: 6px auto 0; max-width: 34em; font-size: 20px; color: var(--lilac-soft); }
.hero__acts { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 26px; }
.hero__more { color: var(--ground); font-weight: 600; text-underline-offset: 7px; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------------------------------------------------------- credentials: press */
.creds { background: var(--ground); padding-block: clamp(88px, 9vw, 140px); }
.creds__h { font-size: clamp(42px, 5.6vw, 84px); color: var(--brand); margin-bottom: clamp(32px, 4vw, 56px); }
.bento { display: grid; grid-template-columns: 1.12fr 1fr 1fr; gap: 14px; }
.cell { margin: 0; padding: clamp(28px, 2.8vw, 40px); }
.cell h3 { font-size: clamp(28px, 2.5vw, 40px); color: var(--brand); margin-bottom: 10px; }
.cell__p { margin: 0; font-size: 18px; color: var(--ink-soft); }
.cell--certs {
  grid-column: 1; grid-row: 1 / span 3;
  background: var(--brand); color: var(--ground);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  min-height: clamp(560px, 46vw, 660px);
}
.certs { margin: 0; white-space: nowrap; font: 900 clamp(96px, 10.6vw, 168px)/.9 var(--f-display); letter-spacing: -.02em; text-align: right; color: var(--ground); max-width: none; }
.certs span { display: block; }
.certs span + span { color: var(--accent); }
.cell--certs .cell__p { color: var(--lilac-soft); font-size: 20px; }
.cell--photo { grid-column: 2 / span 2; grid-row: 1; height: clamp(280px, 25vw, 380px); overflow: hidden; padding: 0; background: var(--ground-alt); }
.cell--photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.cell--lab, .cell--line { background: var(--ground-alt); }
.cell--lab { grid-column: 2; grid-row: 2; }
.cell--line { grid-column: 3; grid-row: 2; }
.cell--team { grid-column: 2 / span 2; grid-row: 3; background: var(--accent); display: flex; align-items: baseline; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.cell--team h3 { color: var(--dark); margin: 0; }
.cell--team .cell__p { color: var(--dark); }

/* --------------------------------------------------------------- products: fill */
.products { background: var(--ground); padding-bottom: 0; }
.products__head { padding-bottom: clamp(32px, 4vw, 56px); }
.products__head h2 { font-size: clamp(42px, 5.6vw, 84px); color: var(--brand); }
.products__head p { margin: 4px 0 0; font-size: 20px; color: var(--ink-soft); }
.row { display: grid; grid-template-columns: 1fr 1fr; min-height: min(80svh, 720px); }
.row--soap { --c: var(--soap); }
.row--potash { --c: var(--potash); }
.row--shampoo { --c: var(--shampoo); }
.row--potash .row__shot { order: -1; }
.row__field { position: relative; isolation: isolate; display: flex; align-items: flex-end; padding: clamp(44px, 5vw, 80px) clamp(28px, 5vw, 80px); color: #FFFFFF; }
.row__ink { position: absolute; inset: 0; z-index: -1; background: var(--c); transform-origin: 50% 100%; }
.row__body { max-width: 560px; }
.row__full { margin: 0; font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .94); }
.row__name { font-size: clamp(96px, 11vw, 176px); color: #FFFFFF; margin: 0; }
.row__use { margin: 0; font-size: 21px; color: #FFFFFF; }
.claims { list-style: none; margin: 28px 0 36px; padding: 0; display: grid; grid-template-columns: repeat(2, max-content); gap: 12px 44px; font-size: 20px; font-weight: 600; }
.claims li { display: flex; align-items: center; gap: 12px; }
.claims li::before { content: ""; flex: none; width: 13px; height: 11px; background: currentColor; opacity: .6; clip-path: polygon(0 0, 100% 0, 50% 100%); }
.row__order {
  display: inline-flex; align-items: center; min-height: 54px; padding: 0 28px;
  background: #FFFFFF; color: var(--c); font-weight: 700; font-size: 18px; text-decoration: none;
  transition: background-color var(--d-fast) var(--ease);
}
.row__order:hover { background: var(--ground-alt); }
.row__field :focus-visible { outline-color: #FFFFFF; }
.row__shot { position: relative; overflow: hidden; min-height: 320px; background: var(--ground-alt); }
.row__shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------------------------------------------------- process line: draw */
.how { background: var(--steel); color: var(--ink); padding-block: clamp(88px, 9vw, 140px) clamp(64px, 6vw, 96px); overflow: clip; }
.how__head h2 { font-size: clamp(42px, 5.6vw, 84px); color: var(--brand); }
.how__head p { margin: 4px 0 0; font-size: 20px; color: var(--ink-soft); }
.line { position: relative; margin-top: clamp(36px, 4vw, 56px); cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.line:active { cursor: grabbing; }
.line:focus-visible { outline: 3px solid var(--brand); outline-offset: 6px; }
.track { display: flex; gap: 6px; width: max-content; margin: 0; padding: 0; padding-inline: var(--edge); list-style: none; }
.frame { position: relative; flex: none; width: 520px; }
.frame__win { height: clamp(300px, 44svh, 460px); overflow: hidden; background: var(--steel-2); }
.frame__win picture { display: block; height: 100%; }
.frame__win img { width: 118%; max-width: none; height: 100%; object-fit: cover; margin-inline-start: -9%; pointer-events: none; }
.frame:nth-child(1) .frame__win img { object-position: 30% 50%; }
.frame:nth-child(4) .frame__win img { object-position: 50% 30%; }
.frame__cap { padding: 20px 4px 0; }
.frame__cap h3 { font-size: clamp(24px, 2vw, 30px); color: var(--ink); }
.frame__cap p { margin: 2px 0 0; font-size: 17px; color: var(--ink-soft); }
.frame--end .frame__win { background: var(--brand); display: grid; place-content: center; justify-items: center; gap: 24px; padding: 32px; text-align: center; }
.frame__ask { margin: 0; font: 900 clamp(34px, 3.2vw, 46px)/1.3 var(--f-display); color: var(--ground); }
.line__rail { position: relative; height: 4px; margin: 28px var(--edge) 0; background: var(--steel-2); overflow: hidden; }
.line__ink { position: absolute; inset: 0; background: var(--brand); transform-origin: 100% 50%; transform: scaleX(.4); }
.line__hint { margin: 14px var(--edge) 0; max-width: none; font-size: 15px; font-weight: 600; color: var(--ink-soft); }

/* --------------------------------------------------------------- contact: drop */
.contact { background: var(--brand); color: var(--ground); padding-block: clamp(88px, 9vw, 140px); }
.contact__in { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.contact h2 { font-size: clamp(46px, 6.2vw, 96px); color: var(--ground); }
.contact h2 .ln { display: block; }
.contact__ask > p { margin: 16px 0 0; font-size: 20px; color: var(--lilac-soft); }
.contact__drop { position: relative; margin-top: 36px; padding-top: 134px; }
.mini { position: absolute; top: 0; inset-inline-start: calc(170px - 62px); width: 124px; } /* centred over the 340px main action */
.mini svg { display: block; width: 100%; height: auto; overflow: visible; }
.mini__body { fill: var(--ground); }
.mini__tri { fill: var(--accent); }
.drop--mini { width: 12px; margin-left: -6px; }
.contact__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 30px; }
.act--target { width: 340px; }
.contact .act-2 { color: var(--ground); }
.contact :focus-visible { outline-color: var(--ground); }
.facts { margin: 0; display: grid; gap: 24px; }
.facts dt { font-size: 15px; font-weight: 600; color: var(--lilac-soft); }
.facts dd { margin: 0; font-size: 20px; font-weight: 600; }
.facts a { text-underline-offset: 5px; }
.facts .map { display: block; font-size: 17px; font-weight: 500; color: var(--lilac-soft); margin-top: 2px; min-height: 32px; }

/* ------------------------------------------------------------------- footer */
.foot { background: var(--dark); color: var(--on-dark); padding-top: clamp(64px, 6vw, 96px); }
.foot__in { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 48px; padding-bottom: 40px; }
.foot__name { margin: 0; font: 900 clamp(40px, 1rem + 2.6vw, 64px)/1.3 var(--f-display); }
.legal { margin: 0; max-width: none; font-size: 16px; color: var(--on-dark-soft); }
.legal__name { display: block; color: var(--on-dark); }
.nivo-bar { font-size: 15px; padding-block: 12px; }
.nivo-credit { color: var(--nivo-bar-ink); gap: 12px; min-height: 44px; }
.nivo-credit__txt { font-family: var(--f-latin); }
.nivo-it { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--ground); }
.nivo-credit .nivo-it img { width: 46px; height: 46px; }
.nivo-bar :focus-visible { outline-color: var(--on-dark); }

/* ------------------------------------------------------- motion from-states
   html.motion is set before first paint by gate.js (only when motion is allowed). Every from-state
   below keeps the headline readable: it is offset, never hidden. script.js animates to the final state;
   if it never starts, gate.js removes html.motion after 4 s and the page shows its final design. */
html.motion .mould__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.motion .mould__level { transform: scaleY(0); }
html.motion .mould__tri { opacity: 0; transform: translateY(-38px); }
html.motion .hero__bg img { transform: scale(1.07); }
html.motion .hero__title .w { transform: translateY(-.16em); }
html.motion .bento .cell { opacity: 0; transform: translateY(-24px); }
html.motion .row__ink { transform: scaleY(0); }
html.motion .row__body { opacity: 0; }

/* ------------------------------------------------------------------- tablet */
@media (max-width: 1100px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .cell--certs { grid-column: 1 / span 2; grid-row: auto; min-height: 0; flex-direction: row; align-items: flex-end; }
  .certs { font-size: clamp(96px, 15vw, 150px); }
  .cell--photo { grid-column: 1 / span 2; grid-row: auto; }
  .cell--lab, .cell--line { grid-column: auto; grid-row: auto; }
  .cell--team { grid-column: 1 / span 2; grid-row: auto; }
  .row { grid-template-columns: 1.1fr 1fr; }
  .claims { grid-template-columns: max-content; }
  .contact__in { grid-template-columns: 1fr; align-items: start; }
}

@media (min-width: 768px) and (max-width: 1100px) and (orientation: portrait) {
  .mould { width: min(60vw, 470px, 36svh); }
  .hero__title { margin-top: 40px; }
}

/* -------------------------------------------------------------------- phone */
@media (max-width: 767px) {
  .bar { padding: 16px var(--gut); }
  .bar__nav { display: none; }
  .bar__name { font-size: 22px; }
  .bar__tel { font-size: 16px; }
  .stage { padding: 12px var(--gut) 40px; }
  .mould { width: min(74vw, 46svh); }
  .hero__title { font-size: clamp(44px, 12.4vw, 60px); white-space: normal; margin-top: 30px; }
  .hero__sub { font-size: 17px; }
  .hero__acts { flex-direction: column; gap: 8px; margin-top: 22px; }
  .hero__acts .act { width: 100%; max-width: 340px; }
  .drop { width: 12px; margin-left: -6px; }

  .bento { grid-template-columns: 1fr; gap: 10px; }
  .cell--certs, .cell--photo, .cell--team { grid-column: auto; }
  .cell--certs { flex-direction: column; align-items: stretch; gap: 20px; }
  .certs { font-size: clamp(88px, 28vw, 120px); }
  .cell--photo { height: 240px; }

  .row { grid-template-columns: 1fr; min-height: 0; }
  .row .row__shot { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .row__field { padding: 36px var(--gut) 48px; }
  .row__name { font-size: clamp(72px, 22vw, 104px); }
  .row__use { font-size: 19px; }
  .claims { font-size: 18px; margin: 22px 0 30px; }

  .frame { width: 80vw; }
  .frame__win { height: clamp(220px, 34svh, 320px); }
  .frame__ask { font-size: 30px; }

  .contact__drop { padding-top: 96px; }
  .contact__acts { flex-direction: column; align-items: stretch; }
  .act--target { min-width: 0; width: 100%; }
  .mini { inset-inline-start: calc(50% - 40px); width: 80px; }
  .facts dd { font-size: 18px; }
}

/* ---------------------------------------------------------------------- 404 */
.page-404 { background: var(--ground); }
.lost { min-height: 72svh; display: grid; place-content: center; justify-items: center; gap: 22px; padding: 64px var(--gut); text-align: center; }
.lost__mark { width: 150px; height: auto; }
.lost h1 { font-size: clamp(44px, 6vw, 84px); color: var(--brand); }
.lost__p { margin: 0 auto; font-size: 19px; color: var(--ink-soft); }
.foot--404 { padding-top: 48px; }
