/*
 * Pinsos Ursa — "Mòdul": light and modular. Warm off-white ground, white
 * rounded panels, pastel tiles per species, a single yellow accent and a tight
 * grotesque. Logical properties throughout so the Arabic (rtl) pages mirror.
 */

/* ---------- Fonts ---------- */

/* Schibsted Grotesk (OFL, see assets/fonts/OFL.txt), served locally so no visitor data goes to Google Fonts. */
@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Schibsted Grotesk';
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url('../fonts/schibsted-grotesk-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokens ---------- */

:root {
  --bg: #f4f3ee;
  --surface: #fff;
  --fg: #141414;
  --muted: #444;
  --soft: #555;
  --line: rgb(0 0 0 / 0.08);
  --yellow: #f2c230;

  /* Tiles: bovine, ovine, other, porcine. */
  --tile-1: #ebd9b8;
  --tile-2: #c9d4b5;
  --tile-3: #c8d8e8;
  --tile-4: #e6d3d0;

  --font: 'Schibsted Grotesk', system-ui, sans-serif;

  --content: 1136px; /* Width of all the content; backgrounds can still go edge to edge. */
  --gutter: max(clamp(16px, 2.5vw, 32px), (100vw - var(--content)) / 2);
  --gap: 12px;
  --radius: 24px;
  --radius-sm: 14px;
  --section: clamp(64px, 8vw, 96px);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}

body:lang(ar) {
  font-family: var(--font), 'Geeza Pro', 'Noto Sans Arabic', sans-serif;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

::selection {
  background: var(--yellow);
  color: var(--fg);
}

[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fg);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Type ---------- */

.display,
.h2,
.h3 {
  margin: 0;
  font-weight: 700;
  text-wrap: balance;
}

.display {
  font-size: clamp(52px, 8.8vw, 96px);
  line-height: 0.92;
  letter-spacing: -0.045em;
}

.display--xl {
  font-size: clamp(60px, 9.5vw, 128px);
}

.display em {
  font-style: normal;
}

.display--xl em::after {
  content: '.';
  color: var(--yellow);
}

.h2 {
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.h3 {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.eyebrow,
.label {
  margin: 0;
  color: var(--soft);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.eyebrow a:hover {
  text-decoration: underline;
}

.label {
  margin-bottom: 10px;
}

.arrow {
  display: inline-block;
  transition: transform 0.2s;
}

[dir='rtl'] .arrow {
  transform: scaleX(-1);
}

a:hover .arrow,
button:hover .arrow {
  transform: translateX(4px);
}

[dir='rtl'] a:hover .arrow,
[dir='rtl'] button:hover .arrow {
  transform: scaleX(-1) translateX(4px);
}

.clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.prose {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

.prose > :first-child {
  margin-top: 0;
}

.prose > :last-child {
  margin-bottom: 0;
}

.prose p,
.prose ul,
.prose ol {
  margin: 0 0 1em;
}

.prose strong {
  color: var(--fg);
  font-weight: 600;
}

.prose a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.prose a:hover {
  text-decoration-thickness: 2px;
}

.prose ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  list-style: none;
}

.prose li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 15px;
  font-weight: 500;
}

/* Long running text (legal pages, articles): ordinary lists instead of chips. */
.prose--text ul {
  display: block;
  padding-inline-start: 20px;
  list-style: disc;
}

.prose--text li {
  margin-bottom: 0.5em;
  padding: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

.prose--text a {
  overflow-wrap: anywhere;
}

/* Wide tables scroll sideways inside the text instead of widening the page. */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 1em;
}

.table-scroll table {
  min-width: 560px;
}

.prose--text table {
  width: 100%;
  margin: 0 0 1em;
  border-collapse: collapse;
  font-size: 15px;
}

.prose--text th,
.prose--text td {
  padding-block: 10px;
  padding-inline: 0 12px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

/* Cookie names are Latin: keep "_ga" from turning into "ga_" in Arabic. */
[dir='rtl'] .prose--text td:first-child {
  direction: ltr;
  padding-inline: 12px 0;
  text-align: right;
}

.prose--text th {
  color: var(--fg);
  font-weight: 600;
}

.prose h2,
.prose h3,
.prose h4 {
  margin: 1.4em 0 0.5em;
  color: var(--fg);
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.prose h4 em {
  font-style: normal;
}

.prose img {
  margin-block: 16px;
  border-radius: var(--radius-sm);
}

.prose--lead {
  color: var(--fg);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.prose--columns {
  columns: 2 320px;
  column-gap: 48px;
}

.prose--columns > * {
  break-inside: avoid;
}

/* ---------- Buttons, pills, links ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 15px/1.1 var(--font);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.btn:active {
  transform: scale(0.97);
}

.btn--accent {
  background: var(--yellow);
  color: var(--fg);
}

.btn--accent:hover,
.btn--accent[aria-current] {
  background: var(--fg);
  color: #fff;
}

.btn--dark {
  background: var(--fg);
  color: #fff;
}

.btn--dark:hover {
  background: var(--yellow);
  color: var(--fg);
}

.btn--white {
  background: #fff;
  color: var(--fg);
}

.btn--white:hover {
  background: var(--fg);
  color: #fff;
}

.btn--ghost {
  border-color: currentColor;
}

.btn--ghost:hover {
  background: #fff;
  color: var(--fg);
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
}

.link-strong {
  font-size: 15px;
  font-weight: 600;
}

.link-strong:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px var(--gutter);
  background: #1a171c; /* The logo's own black, so it shows no box around it. */
}

.brand {
  flex: none;
}

.brand img {
  display: block;
  width: auto;
  height: 40px;
  margin-left: -10px; /* The picture's own dark margin, so the logo lines up with the content. */
}

.site-nav {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-inline-start: 24px;
}

.menu {
  display: flex;
  gap: 2px;
  margin-inline: auto;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
}

.menu a {
  padding: 9px 16px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.menu a:hover {
  background: var(--bg);
}

.menu a[aria-current] {
  background: var(--fg);
  color: #fff;
}

.site-nav__actions {
  display: flex;
  gap: 8px;
}

.langs {
  position: relative;
}

.langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

.langs summary::-webkit-details-marker {
  display: none;
}

.langs__caret {
  flex: none;
  transition: transform 0.2s;
}

.langs[open] .langs__caret {
  transform: rotate(180deg);
}

.langs nav {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  z-index: 5;
  display: grid;
  min-width: 170px;
  padding: 6px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.12);
  --langs-shift: -8px;
  transform-origin: top right;
}

[dir='rtl'] .langs nav {
  transform-origin: top left;
}

.langs[open] nav {
  animation: langs-open 0.2s ease-out;
}

.langs.is-closing nav {
  animation: langs-close 0.15s ease-in forwards;
}

@keyframes langs-open {
  from {
    opacity: 0;
    transform: translateY(var(--langs-shift)) scale(0.97);
  }
}

@keyframes langs-close {
  to {
    opacity: 0;
    transform: translateY(var(--langs-shift)) scale(0.97);
  }
}

.langs nav a {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
}

.langs nav a:hover {
  background: var(--bg);
}

.langs nav a[aria-current] {
  background: var(--fg);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #322e35;
  color: #fff;
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s, background 0.25s;
}

.nav-toggle__bars {
  position: relative;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
}

.nav-toggle__bars::before {
  top: -6px;
}

.nav-toggle__bars::after {
  top: 6px;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars {
  background: transparent;
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded='true'] .nav-toggle__bars::after {
  transform: translateY(-6px) rotate(-45deg);
}

.site-header .btn--accent:hover,
.site-header .btn--accent[aria-current] {
  background: var(--fg);
  color: #fff;
}

/* On the black bar; below this width the menu is a white panel and keeps its colours. */
@media (min-width: 1081px) {
  .menu,
  .langs summary {
    background: #322e35;
    color: #fff;
  }

  .menu a:hover {
    background: #4a454e;
  }

  .menu a[aria-current] {
    background: #fff;
    color: var(--fg);
  }

  .site-header .btn--accent:hover,
  .site-header .btn--accent[aria-current] {
    background: #fff;
    color: var(--fg);
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 76px var(--gutter) auto;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    padding: 8px;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: 0 20px 60px rgb(0 0 0 / 0.15);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top;
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .site-header.is-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .menu {
    flex-direction: column;
    margin: 0;
    padding: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
  }

  .menu a {
    padding: 14px 18px;
    border-radius: 16px;
  }

  .site-nav__actions {
    justify-content: space-between;
    padding: 8px;
  }

  .langs summary {
    background: var(--bg);
  }

  .langs nav {
    inset-inline: 0 auto;
    top: auto;
    bottom: calc(100% + 8px);
    --langs-shift: 8px;
    transform-origin: bottom left;
  }
}

/* ---------- Page heading ---------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 32px;
  padding: clamp(32px, 4vw, 48px) var(--gutter) clamp(28px, 3vw, 40px);
}

.page-head__subtitle {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.intro {
  padding: 0 var(--gutter) clamp(32px, 4vw, 48px);
}

.page-head--title {
  padding-top: clamp(48px, 6vw, 80px);
}

.page-head .eyebrow {
  margin-bottom: 16px;
}

.page-head__lead {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.breadcrumb {
  padding: clamp(32px, 4vw, 48px) var(--gutter) 16px;
}

/* ---------- Generic blocks ---------- */

.section {
  padding: 0 var(--gutter) var(--section);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 28px;
}

.panel {
  margin: 0 var(--gutter) var(--gap);
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel--narrow {
  max-width: 900px;
  margin-bottom: var(--section);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.card__img {
  display: block;
  height: 200px;
  overflow: hidden;
  background: var(--tile-1);
}

.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}

.card:hover .card__img img {
  transform: scale(1.05);
}

.card__body {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 10px;
  padding: 24px;
}

.card__body p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* Services: vertical tabs in a dark block, one service open and the titles of
   the others always visible. Without JS (no .is-ready) all of them are open. */
.vt {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--fg);
  color: #fff;
}

.vt__images {
  position: relative;
  min-height: 600px;
}

.vt__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s;
}

.vt__image.is-active,
.vt:not(.is-ready) .vt__image:first-child {
  opacity: 1;
}

.vt__items {
  padding: clamp(20px, 3vw, 36px);
}

.vt__item + .vt__item {
  border-top: 1px solid rgb(255 255 255 / 0.2);
}

.vt__heading {
  margin: 0;
  font: inherit;
}

.vt__tab {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 0;
  border: 0;
  background: none;
  color: rgb(255 255 255 / 0.65);
  font: inherit;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: start;
  cursor: pointer;
  transition: color 0.2s;
}

.vt__tab:hover,
.vt__tab.is-active {
  color: #fff;
}

.vt:not(.is-ready) .vt__tab {
  cursor: default;
}

.vt__num {
  flex: none;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  opacity: 0.6;
}

.vt__tab.is-active .vt__num {
  color: var(--yellow);
  opacity: 1;
}

.vt__title {
  flex: 1;
}

.vt__panel {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows 0.4s ease, visibility 0.4s;
}

.vt.is-ready .vt__panel:not(.is-active) {
  grid-template-rows: 0fr;
  visibility: hidden;
}

.vt__clip {
  min-height: 0;
  overflow: hidden;
}

.vt__body {
  padding-bottom: 20px;
  color: rgb(255 255 255 / 0.8);
  font-size: 17px;
}

.vt__body p {
  margin: 0;
}

@media (max-width: 760px) {
  .vt {
    grid-template-columns: minmax(0, 1fr);
  }

  .vt__images {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

.cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin: 0 var(--gutter) 40px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  background: var(--tile-1);
}

.cta .h2 {
  max-width: 820px;
  font-size: clamp(30px, 4vw, 52px);
}

.tile-17,
.tile-1 {
  background: var(--tile-1);
}

.tile-18,
.tile-2 {
  background: var(--tile-2);
}

.tile-20,
.tile-3 {
  background: var(--tile-3);
}

.tile-19 {
  background: var(--tile-4);
}

/* ---------- Home ---------- */

/* The hero keeps the "Port" look: its own colours, type and buttons. */
.hero {
  --hero-bg: #121417;
  --hero-fg: #eceae4;
  --hero-accent: var(--yellow);
  position: relative;
  height: min(720px, calc(100svh - 80px));
  min-height: 520px;
  overflow: hidden;
  background: var(--hero-bg);
  color: var(--hero-fg);
}

.hero__slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease, transform 6s ease-out;
}

.hero__slides img.is-active {
  opacity: 1;
  transform: scale(1.06);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(18 20 23 / 0.95) 5%, rgb(18 20 23 / 0.25) 60%, rgb(18 20 23 / 0.5));
}

.hero__body {
  position: absolute;
  inset-inline: clamp(20px, 3.75vw, 48px); /* The hero keeps its own edge-to-edge width. */
  bottom: clamp(28px, 4vw, 48px);
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
}

.hero__text {
  display: grid;
  gap: 24px;
  justify-items: start;
}

.hero__title {
  margin: 0;
  font-weight: 700;
  font-size: clamp(36px, 11.5vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero__title em {
  color: var(--hero-accent);
  font-style: normal;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero .btn {
  gap: 10px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  white-space: normal;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hero .btn:active {
  transform: none;
}

.hero .btn--light {
  background: var(--hero-fg);
  color: var(--hero-bg);
}

.hero .btn--light:hover {
  background: var(--hero-accent);
}

.hero .btn--outline {
  border-color: var(--hero-fg);
  color: var(--hero-fg);
}

.hero .btn--outline:hover {
  border-color: var(--hero-accent);
  color: var(--hero-accent);
}

.hero__meta {
  display: grid;
  gap: 2px;
  justify-items: end;
  font-size: 14px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.hero__bars {
  display: flex;
  gap: 6px;
}

.hero__bars[hidden] {
  display: none;
}

/* A thin line inside a taller button, so it is easy to hit. */
.hero__bars button {
  width: 44px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero__bars button::before {
  content: '';
  display: block;
  height: 3px;
  background: rgb(236 234 228 / 0.3);
  transition: background 0.4s;
}

.hero__bars button:hover::before {
  background: rgb(236 234 228 / 0.8);
}

.hero__bars button[aria-current]::before {
  background: var(--hero-accent);
}

.hero__bars button:focus-visible {
  outline: 2px solid var(--hero-accent);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .hero__meta {
    display: none;
  }
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap) 24px;
  margin: 0;
  padding: clamp(32px, 4vw, 48px) var(--gutter) var(--section);
  list-style: none;
}

.pillars .tile-1 {
  background: var(--tile-1);
}

.pillars .tile-2 {
  background: var(--tile-2);
}

.pillars .tile-3 {
  background: var(--tile-3);
}

.pillars .card__body p {
  color: var(--fg);
}

.pillars .card__body {
  flex: 1;
  grid-template-rows: auto auto 1fr;
  justify-items: stretch;
  padding: 28px;
}

.pillars__links {
  display: grid;
  align-self: end;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pillars__links li {
  border-top: 1px solid rgb(0 0 0 / 0.16);
}

.pillars__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-inline: -8px;
  padding: 12px 8px;
  font-size: 15px;
  font-weight: 600;
  position: relative;
  isolation: isolate;
}

.pillars__links a::before {
  content: '';
  position: absolute;
  inset: 4px 0;
  z-index: -1;
  background: rgb(0 0 0 / 0.08);
  /* clip-path instead of scaleX, so the corners don't stretch during the sweep */
  clip-path: inset(0 100% 0 0 round 12px);
  transition: clip-path 0.3s ease;
}

[dir='rtl'] .pillars__links a::before {
  clip-path: inset(0 0 0 100% round 12px);
}

.pillars__links a:hover::before,
.pillars__links a:focus-visible::before {
  clip-path: inset(0 0 0 0 round 12px);
}

.pillars--values {
  gap: var(--gap);
  padding-top: 0;
}

@media (max-width: 900px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

/* ---------- "Parlem?" block and footer ---------- */

.talk {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 32px;
  margin: 40px var(--gutter);
  padding: clamp(32px, 4.5vw, 56px);
  border-radius: 28px;
  background: var(--yellow);
  color: var(--fg);
}

main:has(+ .talk) > :last-child {
  margin-bottom: 0;
}

main:has(+ .talk) > :is(.section, .catalog, .export, .contact):last-child {
  padding-bottom: 0;
}

.talk__title {
  margin: 0;
  font-size: clamp(44px, 5.6vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.talk__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.talk__links .btn {
  padding: 14px 18px;
  direction: ltr;
}

.talk__links svg {
  flex: none;
  width: 18px;
  height: 18px;
}

.talk__links svg:not([fill]) {
  fill: currentColor;
}

.site-footer {
  position: relative;
  padding: 72px var(--gutter) 28px;
  background: #1a171c; /* Same as the header: the logo's own black. */
  color: #fff;
}

.to-top {
  position: absolute;
  top: 0;
  inset-inline-end: var(--gutter);
  display: grid;
  place-items: center;
  width: 60px;
  height: 46px;
  border-radius: 0 0 16px 16px;
  background: var(--yellow);
  color: var(--fg);
  transition: height 0.2s;
}

.to-top:hover {
  height: 52px;
}

.site-footer .to-top:hover {
  color: var(--fg);
}

.to-top:focus-visible {
  outline-color: #fff;
}

.site-footer__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
  padding-bottom: 32px;
}

.site-footer__logo img {
  display: block;
  width: auto;
  height: 40px;
  margin-left: -10px; /* The picture's own dark margin, as in the header. */
}

.site-footer__menu {
  display: flex;
  flex-wrap: wrap;
  margin-inline-start: auto;
  gap: 8px 28px;
  font-size: 16px;
  font-weight: 600;
}

.site-footer__follow {
  display: flex;
  gap: 8px;
}

.site-footer__follow a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 0.25);
  border-radius: 50%;
  transition: border-color 0.2s, color 0.2s;
}

.site-footer__follow a:hover {
  border-color: var(--yellow);
}

.site-footer__follow svg {
  width: 20px;
  height: 20px;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 32px;
  padding-top: 20px;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  color: rgb(255 255 255 / 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer a:hover {
  color: var(--yellow);
}

@media (max-width: 760px) {
  .site-footer__top {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-footer__menu {
    margin-inline-start: 0;
  }
}

/* ---------- Catalogue ---------- */

.catalog {
  display: grid;
  gap: 24px;
  padding: 0 var(--gutter) var(--section);
}

.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter a {
  display: flex;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.filter a span {
  opacity: 0.6;
}

.filter a:hover {
  background: var(--tile-1);
}

.filter a[aria-current] {
  background: var(--fg);
  color: #fff;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.products--4 {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
}

.products > li {
  display: flex;
}

.product-card {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow: hidden;
  border-radius: 20px;
  background: #fff;
}

.product-card__tile {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 250px;
}

.product-card__tile .pill {
  position: absolute;
  top: 16px;
  inset-inline-start: 16px;
}

/* The animal, cropped from the sack drawing: its circle is at the same place in every file. */
.medallion {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.4s;
}

.medallion img {
  position: absolute;
  top: -87.5%;
  left: -50%;
  width: 200%;
  max-width: none;
  height: auto;
}

.medallion::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(closest-side, transparent 89%, #444 89.5%);
}

.product-card__tile .medallion {
  width: 180px;
  height: 180px;
}

.product-card:hover .medallion {
  transform: scale(1.06);
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  padding: 20px 22px 24px;
}

.product-card__species {
  color: var(--soft);
  font-size: 13px;
  font-weight: 500;
}

.product-card__name {
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.product-card__summary {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.link-more {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}

.product-card:hover .link-more {
  border-top-color: transparent;
  background: var(--yellow);
}

/* ---------- Product sheet ---------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--gap);
  padding: 0 var(--gutter) var(--section);
}

.product__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 48px;
  border-radius: var(--radius);
}

.product__media .pill {
  position: absolute;
  top: 20px;
  inset-inline-start: 20px;
  padding: 8px 16px;
  font-size: 16px;
}

.product__media .medallion {
  width: min(100%, 320px);
  aspect-ratio: 1;
}

.product__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--radius);
  background: #fff;
}

.product__info .prose {
  width: 100%;
  margin-bottom: 28px;
}

@media (max-width: 860px) {
  .product {
    grid-template-columns: 1fr;
  }

  .product__media {
    min-height: 360px;
  }

  .product__media img {
    max-height: 300px;
  }
}

/* ---------- Empresa ---------- */

.video {
  margin: 0 var(--gutter) var(--section);
  overflow: hidden;
  border-radius: var(--radius);
}

.video video {
  width: 100%;
  background: #000;
}

.panel + .video {
  margin-top: 0;
}

/* History: a vertical line with a dot per milestone, the year on one side and the
   text on the other. Logical properties so it mirrors in Arabic. */
.timeline {
  --year: 224px;
  --rail: 56px; /* Space between the year and the text. */
  --dot: 20px; /* From the year to the centre of the dot, which sits close to the year. */
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: var(--year) minmax(0, 1fr);
  column-gap: var(--rail);
  row-gap: 10px;
  align-items: baseline;
  padding-bottom: 48px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-start: calc(var(--year) + var(--dot) - 1px);
  width: 2px;
  background: rgb(0 0 0 / 0.16);
}

.timeline__item:first-child::before {
  top: 12px;
}

.timeline__item:last-child::before {
  bottom: auto;
  height: 12px;
}

.timeline__item::after {
  content: '';
  position: absolute;
  top: 12px;
  inset-inline-start: calc(var(--year) + var(--dot) - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px var(--bg);
}

.timeline__year {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  word-spacing: 0.2em;
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

[dir='rtl'] .timeline__year {
  text-align: left;
}

.timeline__item .h3,
.timeline__item .prose {
  grid-column: 2;
  max-width: 720px;
}

.timeline__item .prose {
  font-size: 16px;
}

@media (max-width: 760px) {
  .timeline {
    --year: 0px;
    --rail: 32px;
  }

  .timeline__item {
    grid-template-columns: minmax(0, 1fr);
    padding-inline-start: 26px;
    column-gap: 0;
  }

  .timeline__item::before {
    inset-inline-start: 6px;
  }

  .timeline__item::after {
    inset-inline-start: 0;
    top: 8px;
  }

  .timeline__item:first-child::before {
    top: 8px;
  }

  .timeline__item:last-child::before {
    height: 8px;
  }

  .timeline__year {
    text-align: left;
  }

  [dir='rtl'] .timeline__year {
    text-align: right;
  }

  .timeline__item .h3,
  .timeline__item .prose {
    grid-column: 1;
  }
}

/* ---------- Exportación ---------- */

.export {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--gap);
  padding: 0 var(--gutter) var(--gap);
}

.export:last-child {
  padding-bottom: var(--section);
}

/* Odd rows: photo + text. Even rows: text + photo. */
.export--photo-first {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}

.export--photo-first .export__photo {
  order: -1;
}

.export__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius);
}

.export__body .prose {
  width: 100%;
  color: var(--fg);
}

.export__body .prose li {
  background: rgb(255 255 255 / 0.6);
}

.export__body .btn {
  margin-top: auto;
}

.export__photo {
  position: relative;
  min-height: 460px;
  overflow: hidden;
  border-radius: var(--radius);
}

.export__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px) {
  .export,
  .export--photo-first {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Always the photo above its text when stacked. */
  .export__photo {
    order: -1;
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

/* The export video, as a full-width row between the cards. */
.export-video {
  position: relative;
  margin: 0 var(--gutter) var(--gap);
  overflow: hidden;
  border-radius: var(--radius);
  background: #000;
}

.export-video video {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.export-video__title {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
  margin: 0;
  padding: clamp(20px, 3vw, 36px) clamp(20px, 4vw, 48px) clamp(48px, 7vw, 96px);
  background: linear-gradient(rgb(0 0 0 / 0.6), transparent);
  color: #fff;
  font-size: clamp(24px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  pointer-events: none;
}

@media (max-width: 900px) {
  .export-video video {
    aspect-ratio: 16 / 9;
  }
}

/* Services page: rows like the export ones, with a smaller title. */
.svc-row__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.svc-row .export__body {
  justify-content: center;
}

@media (min-width: 901px) {
  .svc-row .export__photo {
    min-height: 280px;
  }
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
  gap: var(--gap);
  padding: 0 var(--gutter) 40px;
}

.form {
  display: grid;
  justify-items: start;
  gap: 20px;
  padding: clamp(24px, 4vw, 48px);
  border-radius: var(--radius);
  background: #fff;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  width: 100%;
}

.field {
  display: grid;
  gap: 8px;
  width: 100%;
}

.field > span {
  font-size: 14px;
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: 400 16px/1.4 var(--font);
  transition: border-color 0.2s, background 0.2s;
}

.field textarea {
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #8a8a85;
}

.field input:focus,
.field textarea:focus {
  border-color: var(--fg);
  background: #fff;
  outline: none;
}

.check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--muted);
  font-size: 15px;
}

.check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--fg);
}

.check a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.alert {
  width: 100%;
  margin: 0;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: #f6dcd5;
  color: #7a2414;
  font-weight: 600;
}

.alert--ok {
  background: var(--tile-2);
  color: #233015;
}

.contact__maps {
  display: grid;
  grid-auto-rows: 1fr;
  gap: var(--gap);
}

.contact__map {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.contact__map figcaption {
  padding: 14px 20px;
  background: var(--yellow);
  font-size: 15px;
  font-weight: 600;
}

.contact__map iframe {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 220px;
  border: 0;
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: 1fr;
  }
}

/* ---------- Article ---------- */

.article__img {
  margin-bottom: 32px;
  border-radius: var(--radius-sm);
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Cookie consent ---------- */

/* CookieConsent v3 (assets/vendor/cookieconsent) in the site's colours and shapes. */
#cc-main {
  --cc-font-family: var(--font);
  --cc-bg: var(--surface);
  --cc-primary-color: var(--fg);
  --cc-secondary-color: var(--muted);
  --cc-btn-primary-bg: var(--fg);
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: var(--fg);
  --cc-btn-primary-hover-bg: var(--yellow);
  --cc-btn-primary-hover-color: var(--fg);
  --cc-btn-primary-hover-border-color: var(--yellow);
  --cc-btn-secondary-bg: var(--bg);
  --cc-btn-secondary-color: var(--fg);
  --cc-btn-secondary-border-color: var(--bg);
  --cc-btn-secondary-hover-bg: var(--yellow);
  --cc-btn-secondary-hover-color: var(--fg);
  --cc-btn-secondary-hover-border-color: var(--yellow);
  --cc-btn-border-radius: 999px;
  --cc-modal-border-radius: var(--radius);
  --cc-separator-border-color: var(--line);
  --cc-toggle-on-bg: var(--fg);
  --cc-toggle-readonly-bg: #cfcdc5;
  --cc-cookie-category-block-bg: var(--bg);
  --cc-cookie-category-block-border: var(--bg);
  --cc-cookie-category-block-hover-bg: #ebe9e2;
  --cc-cookie-category-block-hover-border: #ebe9e2;
  --cc-section-category-border: var(--line);
  --cc-footer-bg: var(--bg);
  --cc-footer-color: var(--muted);
  --cc-footer-border-color: var(--line);
  --cc-link-color: var(--fg);
}

/* The category blocks reuse the button radius; keep pill buttons but give the blocks the
   panel radius, or an expanded block turns into a capsule. */
#cc-main .pm__section,
#cc-main .pm__section--toggle {
  --cc-btn-border-radius: var(--radius-sm);
}

/* Footer "cookie settings": a button that looks like the links around it. */
.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.link-button:hover {
  color: var(--yellow);
}

/* Contact maps waiting for consent. */
.contact__map-consent {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
  min-height: 220px;
  padding: 24px 20px;
  color: var(--muted);
  font-size: 15px;
}

.contact__map-consent p {
  max-width: 34ch;
  margin: 0;
}

.contact__map-consent a {
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact__map.is-loaded .contact__map-consent {
  display: none;
}
