/* ==========================================================================
   WordReward — Portfolio & Scope of Business 2026
   Web edition of the PDF portfolio. One <section class="page"> per PDF page.

   EDITING GUIDE
   -------------
   Colours, fonts and page width all come from the :root variables below —
   change them once here and the whole document follows.
   Each page's look is set by a theme class on the section:
       .t-navy    dark navy page
       .t-cream   cream page
       .t-yellow  yellow page
   Diagonal accents are pure CSS (.diag-*), so nothing needs re-exporting.
   ========================================================================== */

:root {
  /* Brand palette, sampled from the source PDF */
  --navy: #34354b;
  --navy-soft: #424358;
  --navy-light: #55576a;
  --cream: #fef1d5;
  --yellow: #fedb8d;
  --white: #ffffff;
  --link: #c8102e;
  --logo-wall-surface: #e6e7eb;
  /* Neutral slate used for section banners and country labels. */
  --slate: #6f6f78;

  --ink-on-light: #34354b;
  --ink-on-dark: #ffffff;

  /* Page geometry — the PDF is A4 portrait, so pages keep a tall proportion */
  --page-width: 860px;
  --page-pad-x: clamp(24px, 6vw, 66px);
  --page-pad-y: clamp(34px, 6vw, 62px);

  --font-body: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;

  --radius: 6px;
}

/* --------------------------------------------------------------- reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #1e1f2c;
  font-family: var(--font-body);
  color: var(--ink-on-light);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--navy);
  background: var(--white);
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #e13150;
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 24px;
}

/* Floating portfolio index. It stays vertical on larger screens and becomes
   a compact bottom rail on phones so it never covers the page content. */
.section-nav {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 100;
  width: 134px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  color: var(--white);
  background: rgba(31, 32, 47, 0.9);
  box-shadow: 0 16px 42px rgba(12, 13, 22, 0.28);
  backdrop-filter: blur(14px);
  transform: translateY(-50%);
}

.section-nav__brand {
  /* Wide lockup, not a glyph -- a circle would squeeze it. */
  width: 100%;
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
  padding: 4px 6px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  text-decoration: none;
}

.section-nav__list {
  list-style: none;
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.section-nav__link {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.section-nav__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.section-nav__link:hover,
.section-nav__link.is-active {
  color: var(--navy);
  background: var(--white);
}

.section-nav__link.is-active .section-nav__dot {
  background: currentColor;
}

/* ---------------------------------------------------------------- page --- */
.page {
  position: relative;
  overflow: hidden;
  padding: var(--page-pad-y) var(--page-pad-x);
}

.page__inner {
  position: relative;
  z-index: 2;
  max-width: var(--page-width);
  margin: 0 auto;
}

/* The cover and client wall form one visual spread. Keeping their diagonal
   artwork on the shared parent prevents the pattern from restarting where
   the two sections meet. */
.navy-continuum {
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: var(--ink-on-dark);
}

.navy-continuum::before,
.navy-continuum::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.navy-continuum::before {
  background: linear-gradient(114deg, rgba(255, 255, 255, 0.07) 0 42%, transparent 42%);
}

.navy-continuum::after {
  background: linear-gradient(298deg, rgba(255, 255, 255, 0.05) 0 30%, transparent 30%);
}

/* Themes ------------------------------------------------------------------ */
.t-navy {
  background: var(--navy);
  color: var(--ink-on-dark);
}

.t-cream {
  background: var(--cream);
  color: var(--ink-on-light);
}

.t-yellow {
  background: var(--yellow);
  color: var(--ink-on-light);
}

/* Diagonal accents — the PDF's sweeping corner shapes, rebuilt in CSS ------ */
.diag::before,
.diag::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.diag-light::before {
  background: linear-gradient(114deg, rgba(255, 255, 255, 0.07) 0 42%, transparent 42%);
}

.diag-light::after {
  background: linear-gradient(298deg, rgba(255, 255, 255, 0.05) 0 30%, transparent 30%);
}

.diag-warm::before {
  background: linear-gradient(114deg, rgba(255, 255, 255, 0.45) 0 38%, transparent 38%);
}

.diag-warm::after {
  background: linear-gradient(300deg, rgba(255, 216, 130, 0.5) 0 26%, transparent 26%);
}

/* -------------------------------------------------------------- header --- */
/* ---------------------------------------------------------- typography --- */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.13;
  margin: 0 0 0.5em;
}

.h-hero {
  font-size: clamp(2.1rem, 6.2vw, 3.7rem);
  font-weight: 800;
  letter-spacing: -0.015em;
}

.h-page {
  font-size: clamp(1.85rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.01em;
}

.h-sub {
  font-size: clamp(1.05rem, 2.4vw, 1.42rem);
  font-weight: 700;
  margin-bottom: 1.1em;
}

.lede {
  font-size: clamp(0.95rem, 2vw, 1.06rem);
  line-height: 1.72;
  letter-spacing: 0.012em;
  max-width: 62ch;
}

.muted {
  opacity: 0.92;
}

/* ---------------------------------------------------------------- cover --- */
.cover {
  min-height: min(82vh, 780px);
  display: grid;
  place-items: center;
  text-align: center;
}

.cover__logo {
  width: clamp(260px, 62%, 560px);
  margin: 0 auto clamp(18px, 3vw, 26px);
}

.cover__tag {
  font-size: clamp(0.85rem, 2vw, 1.06rem);
  letter-spacing: 0.06em;
  line-height: 1.7;
  margin: 0;
}

.cover__divider {
  width: min(70%, 560px);
  height: 3px;
  background: var(--white);
  border: 0;
  margin: clamp(46px, 12vw, 120px) auto clamp(24px, 5vw, 42px);
}

.cover__title {
  font-size: clamp(1.02rem, 3.1vw, 1.85rem);
  font-weight: 400;
  letter-spacing: 0.22em;
  margin: 0;
}

/* ------------------------------------------------------------ logo wall --- */
.logo-wall-stage {
  width: 100vw;
  /* Tight to the rule above: the navy band is now just eyebrow-free header + rule,
     and a large gap would leave it reading as an empty strip. */
  margin: clamp(16px, 2.4vw, 26px) 0 calc(-1 * var(--page-pad-y));
  margin-left: calc(50% - 50vw);
  padding: clamp(38px, 5vw, 56px) var(--page-pad-x) clamp(52px, 7vw, 74px);
  background: var(--logo-wall-surface);
  /* The stage is a light panel inside .navy-continuum, which sets white text. */
  color: var(--ink-on-light);
}

/* Constrains the headline to the same content column as .logo-wall, which the
   full-bleed stage would otherwise let run to the viewport edge. */
.logo-wall-intro {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto clamp(26px, 3.6vw, 42px);
}

.logo-wall-intro .h-hero {
  margin: 0;
}

.logo-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(26px, 3.4vw, 38px) clamp(28px, 3.8vw, 44px);
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
}

.logo-wall img {
  width: auto;
  height: clamp(54px, 5.8vw, 72px);
  max-width: clamp(112px, 13vw, 164px);
  object-fit: contain;
  flex: 0 1 auto;
  margin: 0;
}

.logo-wall__dark {
  padding: 9px;
  border-radius: var(--radius);
  background: var(--navy);
}

.logo-wall__boost {
  filter: contrast(1.45) saturate(1.25);
}

.logo-wall__zoom {
  height: clamp(64px, 6.6vw, 84px);
  max-width: clamp(128px, 14vw, 180px);
}

.logo-wall__zoom-lg {
  height: clamp(74px, 7.4vw, 96px);
  max-width: clamp(144px, 15vw, 194px);
}

.logo-wall__wide {
  width: clamp(132px, 14vw, 174px);
  height: clamp(54px, 5.8vw, 72px);
  max-width: none;
}

.logo-wall__tall {
  width: clamp(70px, 8vw, 92px);
  height: clamp(66px, 7vw, 90px);
  max-width: none;
}

.logo-wall__tarek {
  width: clamp(160px, 17vw, 208px);
  height: clamp(64px, 6.8vw, 88px);
}

.logo-wall__scale-sm {
  transform: scale(1.16);
}

.logo-wall__scale-md {
  transform: scale(1.28);
}

.logo-wall__scale-lg {
  transform: scale(1.42);
}

.logo-wall__visual-xl {
  margin-inline: clamp(12px, 1.6vw, 20px);
  transform: scale(1.62);
}

.logo-wall__visual-xxl {
  margin-inline: clamp(18px, 2vw, 28px);
  transform: scale(1.88);
}

/* ------------------------------------------------------------ text bits --- */
.stack > * + * {
  margin-top: clamp(26px, 4vw, 40px);
}

/* Two equal columns for content that would otherwise run at ~60% width with an
   empty right half (About's Vision/Mission). */
.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.divider-soft {
  height: 1px;
  border: 0;
  margin: clamp(22px, 3.5vw, 32px) 0;
  background: currentColor;
  opacity: 0.35;
}

/* Numbered service pages -------------------------------------------------- */
.service {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: start;
}

.service__index {
  font-size: clamp(3.4rem, 11vw, 6.4rem);
  font-weight: 800;
  line-height: 0.86;
  margin: 0;
}

.service__name {
  font-size: clamp(1.6rem, 4.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0.16em 0 0;
}

/* A labelled block: white tab + description, used across the service pages */
.item {
  margin-bottom: clamp(20px, 3vw, 30px);
}

.item__label {
  display: inline-block;
  padding: 7px 15px;
  margin: 0 0 12px;
  font-size: clamp(0.9rem, 1.9vw, 1.06rem);
  font-weight: 700;
  border-radius: 2px;
}

.t-navy .item__label {
  background: var(--white);
  color: var(--navy);
}

.t-cream .item__label,
.t-yellow .item__label {
  background: var(--navy);
  color: var(--white);
}

.item__body {
  margin: 0;
  font-size: clamp(0.9rem, 1.85vw, 1rem);
  line-height: 1.66;
  max-width: 46ch;
}

/* Closing summary line beneath a service's items (Website Development). */
.item__body--closing {
  margin-top: clamp(18px, 3vw, 28px);
  font-weight: 600;
  max-width: 52ch;
}

/* Two-column feature quadrant (pages 9, 22, 23, 24) ----------------------- */
.quad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3.4vw, 38px);
  margin: clamp(24px, 4vw, 38px) 0;
}

.quad--ruled {
  position: relative;
}

.quad--ruled::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: currentColor;
  opacity: 0.5;
}

.quad__cell h3 {
  font-size: clamp(0.98rem, 2.1vw, 1.14rem);
  font-weight: 700;
  margin: 0 0 0.55em;
}

.quad__cell p {
  margin: 0;
  font-size: clamp(0.88rem, 1.8vw, 0.98rem);
  line-height: 1.62;
}

/* A centred cell that sits BELOW a ruled quad, so the vertical rule stops above
   it (as it does in the source) instead of running through the text. */
.quad-tail {
  text-align: left;
  margin: 0 0 clamp(24px, 4vw, 38px);
}

.quad-tail h3 {
  font-size: clamp(0.98rem, 2.1vw, 1.14rem);
  font-weight: 700;
  margin: 0 0 0.55em;
}

.quad-tail p {
  margin: 0 auto;
  max-width: 60ch;
  font-size: clamp(0.88rem, 1.8vw, 0.98rem);
  line-height: 1.62;
}

/* Timeline used on the Analytics page ------------------------------------- */
.timeline {
  position: relative;
  margin: clamp(26px, 4vw, 40px) 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 23px;
  width: 2px;
  margin-left: -1px;
  background: var(--navy);
  opacity: 0.85;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  margin-bottom: clamp(20px, 3vw, 30px);
}

.timeline__dot {
  grid-column: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  margin: 0 auto;
}

.timeline__body {
  grid-column: 2;
  text-align: left;
}

.timeline__body h3 {
  margin: 0 0 0.4em;
  font-size: clamp(0.98rem, 2.1vw, 1.16rem);
  font-weight: 700;
}

.timeline__body p {
  margin: 0;
  font-size: clamp(0.88rem, 1.8vw, 0.98rem);
  line-height: 1.55;
}

.callout {
  background: var(--navy);
  color: var(--white);
  margin-inline: 0;
  padding: clamp(16px, 3vw, 22px) clamp(18px, 3vw, 26px);
  text-align: center;
  font-weight: 700;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  line-height: 1.5;
  max-width: 34em;
  margin: 0 auto;
}

/* ------------------------------------------------------- client tables --- */
.country {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: clamp(22px, 3vw, 30px) 0 12px;
}

.country__flag {
  width: clamp(64px, 8vw, 82px);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  flex: none;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}

.country__name {
  margin: 0;
  padding: 8px 16px;
  background: var(--slate);
  color: var(--white);
  font-size: clamp(1.05rem, 2.5vw, 1.38rem);
  font-weight: 800;
  line-height: 1.1;
}

.clients {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 18px);
}

/* A country with a single client should span the row rather than leaving a
   reserved empty cell beside it. */
.clients > .client:only-child {
  grid-column: 1 / -1;
}

.client {
  display: grid;
  /* logo | name | links -- links used to be pinned to column 2, which pushed them
     onto a second row and made cards with links taller than cards without. */
  grid-template-columns: clamp(74px, 9vw, 92px) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 2.4vw, 22px);
  padding: clamp(12px, 2vw, 18px);
  border: 1px solid currentColor;
  border-radius: var(--radius);
}

.client__logo {
  width: 100%;
  height: 74px;
  max-height: 74px;
  object-fit: contain;
  padding: 8px;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.96);
}

/* Source logos arrive in very different canvas sizes. These variants crop
   excess canvas without changing the shared client-card layout. */
.client__logo--fill {
  object-fit: cover;
  padding: 0;
}

.client__logo--dark {
  padding: 8px;
  background: var(--navy);
}

.client__logo--bottom {
  object-position: center bottom;
}

.client__logo--wordmark-dark {
  object-fit: contain;
  padding: 0;
  background: #292929;
}

.client__logo--boost {
  filter: contrast(1.55) saturate(1.35);
}

.client__logo-frame {
  width: 100%;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius) - 2px);
  background: rgba(255, 255, 255, 0.96);
}

.client__logo-frame .client__logo {
  height: 100%;
  max-height: none;
  object-fit: contain;
  padding: 0;
  border-radius: 0;
  background: transparent;
  transform: scale(var(--logo-scale, 1));
}

.client__logo-frame--nageh { --logo-scale: 1.42; }

.client__name {
  margin: 0;
  font-size: clamp(0.98rem, 2.3vw, 1.24rem);
  font-weight: 700;
  line-height: 1.3;
}

.client--boxed .client__name {
  border: 0;
  padding: 0;
}

.client__links {
  grid-column: 3;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  text-align: left;
}

.link {
  font-weight: 700;
  font-size: clamp(0.85rem, 1.9vw, 1rem);
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.t-yellow .link--navy,
.t-cream .link--navy {
  color: #1c3f6e;
}

.link:hover {
  opacity: 0.72;
}

.icon-link {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  flex: none;
  border: 2px solid currentColor;
  border-radius: 6px;
  color: var(--navy);
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.icon-link svg {
  width: 21px;
  height: 21px;
}

.icon-link--store svg {
  width: 29px;
  height: 29px;
}

.t-navy .icon-link {
  color: var(--white);
}

.icon-link:hover {
  opacity: 1;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-2px);
}

.t-navy .icon-link:hover {
  color: var(--navy);
  background: var(--white);
}

.icon-link:focus-visible {
  outline: 3px solid var(--link);
  outline-offset: 3px;
}

/* Simple project list (page 13) ------------------------------------------- */
.projects {
  list-style: none;
  /* Keep the "click here" column beside the project names rather than letting it
     drift to the far page edge, as in the source layout. */
  max-width: 34em;
  margin: 0 0 clamp(20px, 3vw, 28px);
  padding: 0;
  display: grid;
  gap: clamp(8px, 1.6vw, 13px);
}

.projects li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px 18px;
  font-size: clamp(0.94rem, 2.1vw, 1.12rem);
  font-weight: 700;
}

.projects li span {
  flex: 1 1 auto;
  min-width: 12ch;
}

.region-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(16px, 3vw, 28px);
  margin-top: clamp(18px, 3vw, 26px);
}

.region-row .country {
  margin: 0 0 12px;
}

.region-row h4 {
  margin: 0 0 8px;
  font-size: clamp(0.98rem, 2.1vw, 1.14rem);
}

/* ------------------------------------------------------------ galleries --- */
.gallery {
  margin-top: clamp(20px, 3vw, 30px);
}

/* Social work: masonry columns. Tiles keep their own height, so nothing is
   cropped and a future image at a different ratio simply flows. */
.gallery:not(.gallery--sites) {
  column-count: 3;
  column-gap: clamp(10px, 2vw, 18px);
}

.gallery:not(.gallery--sites) > * {
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 clamp(10px, 2vw, 18px);
  display: block;
}

/* Websites keep the even 16:9 grid. */
.gallery--sites {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
}

.gallery img {
  width: 100%;
  border-radius: var(--radius);
}

.gallery--sites img {
  height: 100%;
  object-fit: cover;
}

.gallery:not(.gallery--sites) img {
  /* No forced box: each tile renders at its own proportions. */
  height: auto;
  display: block;
}

.gallery--sites a {
  aspect-ratio: 16 / 9;
}

.gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery a:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

/* ------------------------------------------------------- software pages --- */
.big-list {
  list-style: none;
  margin: clamp(18px, 3vw, 28px) 0;
  padding: 0;
  display: grid;
  gap: clamp(10px, 2vw, 16px);
  font-size: clamp(1.2rem, 3.4vw, 1.95rem);
  font-weight: 500;
  letter-spacing: 0.05em;
}

.banner {
  display: inline-block;
  margin-inline: 0;
  padding: clamp(10px, 2vw, 18px) clamp(22px, 4vw, 46px);
  background: var(--slate);
  color: var(--white);
  font-size: clamp(1.5rem, 4.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 0 0 clamp(22px, 4vw, 36px);
}

.software-hero {
  width: 100%;
  max-width: 720px;
  max-height: 540px;
  margin: clamp(24px, 5vw, 54px) auto 0;
  /* contain, not cover: the mockup was being clipped mid-screen at the right edge */
  object-fit: contain;
  object-position: left center;
}

.big-list a {
  text-decoration: none;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}

.big-list a:hover {
  opacity: 0.75;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 40px);
  align-items: center;
  margin-top: clamp(20px, 3vw, 30px);
}

.shot h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  margin: 0 0 16px;
  /* the mockup below is centred in its cell, so the title tracks it */
  text-align: center;
}

.shots {
  align-items: start;
}

.shot img {
  /* one scale for all four mockups -- they were rendering at visibly different
     sizes because each was left at its own natural width */
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.feature {
  margin-bottom: clamp(20px, 3vw, 30px);
}

.feature h3 {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 10px 18px;
  margin: 0 0 12px;
  font-size: clamp(1.05rem, 2.6vw, 1.5rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.feature ul {
  margin: 0;
  padding-left: 1.15em;
  display: grid;
  gap: 7px;
  font-size: clamp(0.9rem, 1.9vw, 1.02rem);
  line-height: 1.55;
  letter-spacing: 0.02em;
  max-width: 58ch;
}

.dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 4vw, 48px);
}

#dashboard .page__inner {
  max-width: 1000px;
}

.dashboard-preview {
  /* was floating small in an oversized column; now fills its half properly */
  width: 100%;
  height: auto;
  max-height: none;
}

/* Team structure spine ---------------------------------------------------- */
.spine a {
  text-decoration: none;
  border-bottom: 3px solid currentColor;
  padding-bottom: 2px;
}

.spine a:hover {
  opacity: 0.7;
}

.spine {
  border-left: 3px solid currentColor;
  padding-left: clamp(20px, 4vw, 40px);
  margin: clamp(26px, 4vw, 40px) 0;
  display: grid;
  gap: clamp(20px, 3.4vw, 34px);
  font-size: clamp(1.3rem, 3.6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Why-us list ------------------------------------------------------------- */
.why {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3.2vw, 30px) clamp(28px, 4vw, 48px);
  margin-top: clamp(22px, 3.5vw, 32px);
}

.why h3 {
  font-size: clamp(1.15rem, 2.9vw, 1.6rem);
  font-weight: 700;
  margin: 0 0 0.35em;
}

.why p {
  margin: 0;
  font-size: clamp(0.9rem, 1.9vw, 1.02rem);
  font-weight: 600;
  line-height: 1.6;
  max-width: 66ch;
}

/* -------------------------------------------------------------- contact --- */
.contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  /* title and detail list now share a top baseline instead of floating apart */
  align-items: start;
  gap: clamp(24px, 5vw, 60px);
  margin-top: clamp(32px, 5vw, 56px);
}

.contact__title {
  margin: 0;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: 0.01em;
  margin: 0;
  text-transform: uppercase;
}

.contact__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(14px, 2.4vw, 22px);
}

.contact__list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(0.95rem, 2.1vw, 1.1rem);
}

.contact__icon {
  width: 38px;
  height: 38px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
}

.contact__icon svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

/* --------------------------------------------------------------- print --- */
@media print {
  body {
    background: #fff;
  }

  .page {
    page-break-after: always;
    min-height: auto;
  }

  .section-nav,
  .skip-link {
    display: none;
  }
}

@media (max-width: 1100px) and (min-width: 721px) {
  .section-nav {
    right: 10px;
    width: 58px;
  }

  .section-nav__link {
    width: 42px;
    justify-content: center;
    padding-inline: 0;
  }

  .section-nav__link span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
}

/* ---------------------------------------------------------- responsive --- */
@media (max-width: 720px) {
  .client {
    grid-template-columns: clamp(64px, 18vw, 90px) minmax(0, 1fr);
  }

  .client__links {
    grid-column: 2;
    justify-content: flex-start;
  }

  .pair,
  .why {
    grid-template-columns: minmax(0, 1fr);
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  body {
    padding-bottom: 70px;
  }

  .section-nav {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    padding: 6px;
    border-radius: 14px;
    transform: none;
  }

  .section-nav__brand {
    display: none;
  }

  .section-nav__list {
    grid-template-columns: repeat(7, minmax(48px, 1fr));
    overflow-x: auto;
    scrollbar-width: none;
  }

  .section-nav__list::-webkit-scrollbar {
    display: none;
  }

  .section-nav__link {
    min-height: 48px;
    justify-content: center;
    gap: 5px;
    padding: 6px 5px;
    font-size: 0.62rem;
  }

  .section-nav__dot {
    display: none;
  }

  .logo-wall__scale-sm,
  .logo-wall__scale-md,
  .logo-wall__scale-lg {
    transform: scale(1.12);
  }

  .logo-wall__visual-xl,
  .logo-wall__visual-xxl {
    margin-inline: 8px;
    transform: scale(1.3);
  }

  .service,
  .quad {
    grid-template-columns: minmax(0, 1fr);
  }

  .quad--ruled::before {
    display: none;
  }

  .page__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .client {
    grid-template-columns: clamp(64px, 18vw, 90px) minmax(0, 1fr);
  }

  .clients {
    grid-template-columns: minmax(0, 1fr);
  }

  .client__links {
    grid-column: 2;
  }

  .gallery:not(.gallery--sites) {
    column-count: 2;
  }

  .gallery--sites,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .shots,
  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-preview {
    width: min(100%, 520px);
    margin-inline: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* --------------------------------------------------------------- footer --- */
.site-footer {
  background: var(--navy);
  color: var(--ink-on-dark);
  padding: clamp(30px, 5vw, 48px) var(--page-pad-x);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer__inner {
  max-width: var(--page-width);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 2.4vw, 26px);
}

.site-footer__logo {
  width: clamp(120px, 16vw, 158px);
  flex: none;
}

.site-footer__line {
  margin: 0;
  flex: 1 1 auto;
  font-size: clamp(0.82rem, 1.7vw, 0.94rem);
  opacity: 0.88;
}

.site-footer__legal {
  margin: 0;
  font-size: clamp(0.76rem, 1.5vw, 0.86rem);
  opacity: 0.62;
}

@media print {
  .site-footer {
    display: none;
  }
}

/* Scroll affordance on the cover -------------------------------------------- */
.cover__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(22px, 4vw, 40px);
  z-index: 3;
  translate: -50% 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--ink-on-dark);
  opacity: 0.65;
  transition: opacity 0.2s ease;
  animation: cover-nudge 2.4s ease-in-out infinite;
}

.cover__scroll:hover {
  opacity: 1;
}

.cover__scroll svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

@keyframes cover-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .cover__scroll {
    animation: none;
  }
}

@media print {
  .cover__scroll {
    display: none;
  }
}

.section-nav__brand img {
  width: clamp(84px, 100%, 116px);
  height: auto;
  display: block;
}

/* Primary call to action ---------------------------------------------------- */
.cta {
  display: inline-block;
  margin-top: clamp(14px, 2.4vw, 22px);
  padding: clamp(11px, 1.6vw, 15px) clamp(22px, 3vw, 34px);
  border-radius: 999px;
  font-size: clamp(0.92rem, 1.9vw, 1.02rem);
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.t-navy .cta {
  background: var(--white);
  color: var(--navy);
}

.t-cream .cta,
.t-yellow .cta {
  background: var(--navy);
  color: var(--white);
}

.cta:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.cta:focus-visible {
  outline: 3px solid currentColor;
  outline-offset: 3px;
}
