/* Coppertide */
:root {
  --ink: #121315;
  --night: #171717;
  --bone: #F3EFE8;
  --bone-2: #E8E2D8;
  --stone: #6F6A63;
  --mist: #A9ADB3;
  --copper: #C2672F;
  --copper-light: #CBA985;
  --copper-deep: #9A4A1C; /* copper for text on bone, 5:1 */
  --line-dark: rgba(255, 255, 255, .14);
  --line-light: rgba(18, 19, 21, .14);

  --sans: 'Almarai', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Libre Caslon Display', Georgia, serif;

  --gutter: clamp(16px, 3.1vw, 60px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --nav-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
/* Almarai's word space closes up under negative tracking */
.hero__title, .statement__text, .companies__title, .co__name, .marquee__track li, .band__text, .team__title, .person__name, .contact__title { word-spacing: .1em; }

::selection { background: var(--copper); color: #fff; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 4px; border-radius: 2px; }
html { scrollbar-color: var(--copper) var(--bone-2); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bone-2); }
::-webkit-scrollbar-thumb { background: var(--copper); border-radius: 10px; border: 2px solid var(--bone-2); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--bone); padding: 10px 16px; border-radius: 99px; }
.skip:focus { left: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: clamp(20px, 3vw, 44px);
  padding: 0 var(--gutter);
  color: #fff;
  transition: background-color .5s var(--ease), color .5s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease);
}
.nav.is-solid {
  background: rgba(243, 239, 232, .96);
  color: var(--ink);
  box-shadow: 0 1px 0 var(--line-light);
}
.nav.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: .42em; font: 400 clamp(1.5rem, 1.9vw, 2.1rem)/1 var(--serif); letter-spacing: -.01em; justify-self: start; }
.nav__links { display: flex; gap: clamp(20px, 2.4vw, 44px); font-size: 1rem; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.pill {
  display: inline-flex; align-items: center; height: 50px; padding: 0 28px;
  border: 1.5px solid currentColor; border-radius: 99px; font-size: 1rem;
  transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.pill:hover { background: #fff; color: var(--ink); border-color: #fff; }
.nav.is-solid .pill:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.logo__mark { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100svh; min-height: 640px; overflow: hidden;
  background: var(--ink); color: #fff;
  display: grid; grid-template-rows: 1fr auto;
}
.hero__media { position: absolute; inset: 0 0 20% 0; overflow: hidden; }
.hero__media img {
  width: 100%; height: 118%; object-fit: cover; object-position: 50% 45%;
  filter: saturate(.85) brightness(.7);
  transform: scale(1.12); transition: transform 2.6s var(--ease);
}
.is-loaded .hero__media img { transform: scale(1); }
.hero__shade {
  position: absolute; inset: 0 0 20% 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(18,19,21,.5) 0%, rgba(18,19,21,0) 20%),
    linear-gradient(90deg, rgba(18,19,21,.95) 0%, rgba(18,19,21,.82) 38%, rgba(18,19,21,.2) 70%, rgba(18,19,21,0) 100%),
    linear-gradient(0deg, rgba(18,19,21,.7) 0%, rgba(18,19,21,0) 40%);
}
.hero__copy {
  position: relative; align-self: end;
  padding: 0 var(--gutter) clamp(36px, 6vh, 72px);
}
.hero__kicker {
  font-size: clamp(.8rem, .85vw, .95rem); font-weight: 400; letter-spacing: .3em; text-transform: uppercase;
  color: #E2C7A6; margin-bottom: clamp(16px, 2.4vh, 28px);
}
.hero__kicker span { margin: 0 .6em; }
.hero__title {
  font-weight: 400; font-size: clamp(2.75rem, 5.3vw, 6rem); line-height: 1.04; letter-spacing: -.035em;
  text-wrap: balance; max-width: 15ch;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); }
.hero__title .line:nth-child(2) > span { transition-delay: .12s; }
.is-loaded .hero__title .line > span { transform: none; }
html:not(.js) .hero__title .line > span { transform: none; }

/* company strip */
.strip {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--night); min-height: 20svh;
}
.strip__item { position: relative; border-left: 1px solid var(--line-dark); }
.strip__item:first-child { border-left: 0; }
.strip__item::before {
  content: ""; position: absolute; top: 0; left: var(--gutter); width: 8.5vw; height: 3px;
  background: var(--copper); transform: scaleX(0); transform-origin: left;
}
.strip__item.is-active::before { transform: scaleX(1); transition: transform 4.6s linear; }
.strip__item a {
  height: 100%; display: grid; align-content: center; gap: 2px;
  padding: clamp(18px, 3vh, 36px) var(--gutter);
  color: rgba(255,255,255,.8); transition: color .5s var(--ease), background-color .5s var(--ease);
}
.strip__item:nth-child(2) a { text-align: center; }
.strip__item:nth-child(3) a { text-align: right; }
.strip__item.is-active a, .strip__item a:hover { color: #fff; }
.strip__item a:hover { background: #1d1d1e; }
.strip__num { font-weight: 300; font-size: clamp(1.9rem, 2.6vw, 3rem); line-height: 1; margin-bottom: .45em; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.strip__name { font-weight: 300; font-size: clamp(1.15rem, 1.95vw, 2.3rem); line-height: 1.15; letter-spacing: -.02em; }
.strip__what { font-size: clamp(.85rem, 1vw, 1.1rem); color: var(--mist); }

/* ---------- Proof ---------- */
.proof { padding: clamp(88px, 14vh, 168px) var(--gutter) 0; }
.proof__title { font-weight: 300; font-size: clamp(2.4rem, 5vw, 5.4rem); line-height: 1.02; letter-spacing: -.04em; word-spacing: .1em; }
.proof__title span { color: var(--stone); }
.proof__list { margin-top: clamp(48px, 8vh, 96px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-light); }
.proof__item + .proof__item { border-left: 1px solid var(--line-light); }
.proof__item:nth-child(2) { transition-delay: .1s; }
.proof__item:nth-child(3) { transition-delay: .2s; }
.proof__item a {
  height: 100%; display: grid; grid-template-rows: 96px auto auto; align-content: start; gap: 14px;
  padding: clamp(28px, 4vh, 44px) clamp(20px, 2.4vw, 40px);
  transition: background-color .5s var(--ease);
}
.proof__item:first-child a { padding-left: 0; }
.proof__item a:hover { background: var(--bone-2); }
.proof__item:first-child a:hover { background: none; }
.proof__logo { height: clamp(44px, 4.4vw, 68px); width: auto; align-self: center; }
.proof__wordmark { align-self: center; font: 400 clamp(1.8rem, 2.4vw, 2.4rem)/1 var(--serif); color: var(--stone); }
.proof__status { display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; color: var(--ink); }
.proof__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #2E9B46; box-shadow: 0 0 0 4px rgba(46,155,70,.16); animation: pulse 2.4s var(--ease) infinite; }
.proof__item--soon .proof__status::before { background: transparent; border: 1.5px solid #C08A3E; box-shadow: none; animation: none; }
.proof__url { display: inline-flex; align-items: center; gap: 8px; font-size: 1.05rem; color: var(--copper-deep); }
.proof__item--soon .proof__url { color: var(--stone); }
.proof__url svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.proof__item a:hover .proof__url svg { transform: translate(3px, -3px); }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(46,155,70,0); } }

/* ---------- Statement ---------- */
.statement {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: 24px;
  padding: clamp(96px, 16vh, 200px) var(--gutter) clamp(80px, 12vh, 160px);
}
.statement__text {
  grid-column: 1 / span 10;
  font-weight: 300; font-size: clamp(1.8rem, 3.6vw, 4rem); line-height: 1.14; letter-spacing: -.03em;
  text-wrap: pretty;
}
.statement__text .w { color: rgba(18,19,21,.3); transition: color .6s var(--ease); }
.statement__text .w.on { color: var(--ink); }
html:not(.js) .statement__text .w { color: var(--ink); }
.statement__figure { grid-column: 5 / span 8; margin-top: clamp(64px, 10vh, 128px); }
.statement__figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.statement__figure figcaption { margin-top: 14px; font-size: .9rem; color: var(--stone); }

/* clip reveal */
.js [data-clip] img { clip-path: inset(12% 8% 12% 8%); transform: scale(1.15); transition: clip-path 1.6s var(--ease), transform 2s var(--ease); }
.js [data-clip].in img { clip-path: inset(0 0 0 0); transform: scale(1); }

/* generic reveal */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Companies ---------- */
.companies { position: relative; background: var(--ink); color: var(--bone); padding-top: clamp(96px, 14vh, 180px); }
.companies__title {
  padding: 0 var(--gutter) clamp(48px, 8vh, 96px);
  font-weight: 300; font-size: clamp(3rem, 8vw, 6rem); line-height: 1; letter-spacing: -.04em;
}
.co { position: sticky; top: 0; height: 100svh; min-height: 680px; background: var(--ink); border-top: 1px solid var(--line-dark); }
.co + .co { box-shadow: 0 -30px 60px rgba(0,0,0,.35); }
.co__inner {
  height: 100%; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 96px); align-items: center;
  padding: clamp(32px, 6vh, 72px) var(--gutter);
}
.co:nth-child(odd of .co) .co__media { order: 2; }
.co__media { position: relative; height: 100%; max-height: 78svh; overflow: hidden; }
.co__media img { width: 100%; height: 100%; object-fit: cover; }
.co__media .co__doc {
  position: absolute; left: 6%; bottom: 6%; width: 38%; height: auto; aspect-ratio: 800 / 1131; object-fit: cover;
  clip-path: none; transform: rotate(-3deg); box-shadow: 0 24px 48px rgba(0,0,0,.45), 0 4px 10px rgba(0,0,0,.3);
  transition: transform .8s var(--ease);
}
.js [data-clip] .co__doc { clip-path: none; transform: translateY(24px) rotate(-3deg); opacity: 0; transition: transform 1.2s var(--ease) .5s, opacity 1.2s var(--ease) .5s; }
.js [data-clip].in .co__doc { transform: rotate(-3deg); opacity: 1; }
.co__media:hover .co__doc, .js [data-clip].in:hover .co__doc { transform: rotate(0) scale(1.04); transition-delay: 0s; }
.co__logo { height: clamp(36px, 3.4vw, 48px); width: auto; margin-bottom: clamp(18px, 2.6vh, 28px); }
.co__logo + .co__name { font-size: clamp(1.6rem, 2.4vw, 2.6rem); color: var(--mist); }
.co__num { display: flex; align-items: center; gap: 16px; font-size: 1rem; color: var(--mist); font-variant-numeric: tabular-nums; margin-bottom: clamp(20px, 3vh, 36px); }
.co__num span { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid var(--line-dark); border-radius: 99px; font-size: .85rem; color: var(--bone); }
.co__num span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.co__num .soon::before { background: transparent; border: 1.5px solid var(--accent); }
.co__name { font-weight: 300; font-size: clamp(2.4rem, 4.6vw, 5.4rem); line-height: 1.02; letter-spacing: -.04em; text-wrap: balance; }
.co__lede { margin-top: clamp(18px, 2.6vh, 28px); max-width: 38ch; font-size: clamp(1.05rem, 1.3vw, 1.3rem); line-height: 1.5; color: #CFC9BF; }
.co__list { margin-top: clamp(24px, 4vh, 44px); border-top: 1px solid var(--line-dark); max-width: 520px; }
.co__list li { padding: 14px 0; border-bottom: 1px solid var(--line-dark); display: flex; justify-content: space-between; color: var(--bone); }
.co__list li::after { content: ""; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--accent); opacity: .8; }
.co__link {
  margin-top: clamp(28px, 4vh, 44px); display: inline-flex; align-items: center; gap: 12px;
  font-size: 1.05rem; color: var(--copper-light);
}
.co__link svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .5s var(--ease); }
.co__link:hover svg { transform: translateX(6px); }
.co__link:hover { color: #fff; }

/* ---------- Services marquee ---------- */
.services { background: var(--bone); padding: clamp(80px, 12vh, 140px) 0; overflow: hidden; }
.marquee { overflow: hidden; white-space: nowrap; }
.marquee + .marquee { margin-top: clamp(8px, 1.4vh, 16px); }
.marquee__track { display: inline-flex; gap: 0; animation: marquee 48s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 56s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track li {
  font-weight: 300; font-size: clamp(2.2rem, 5.2vw, 5.6rem); line-height: 1.1; letter-spacing: -.035em;
  padding-right: .7em; display: inline-flex; align-items: center; gap: .7em;
}
.marquee__track li::after { content: ""; width: .18em; height: .18em; border-radius: 50%; background: var(--copper); }
.marquee--rev .marquee__track li { color: var(--stone); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Band ---------- */
.band { position: relative; height: 90svh; min-height: 560px; overflow: hidden; color: #fff; display: grid; align-items: end; }
.band__media { position: absolute; inset: -12% 0; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(18,19,21,.7), rgba(18,19,21,0) 55%); }
.band__text {
  position: relative; z-index: 1; padding: 0 var(--gutter) clamp(40px, 8vh, 96px);
  font-weight: 300; font-size: clamp(2.4rem, 5.6vw, 6rem); line-height: 1.02; letter-spacing: -.04em;
}

/* ---------- Team ---------- */
.team { padding: clamp(96px, 16vh, 200px) var(--gutter); background: var(--bone); }
.team__title { font-weight: 300; font-size: clamp(2.6rem, 5.4vw, 5.6rem); line-height: 1; letter-spacing: -.04em; max-width: 12ch; }
.team__grid { margin-top: clamp(56px, 9vh, 112px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 72px); }
.person { border-top: 1px solid var(--ink); padding-top: 24px; }
.person:nth-child(2) { transition-delay: .12s; }
.person__role { font-size: .95rem; color: var(--copper-deep); }
.person__name { margin-top: 10px; font-weight: 300; font-size: clamp(2rem, 3.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.035em; }
.person__link { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 1rem; color: var(--copper-deep); border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.person__link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform .5s var(--ease); }
.person__link:hover svg { transform: translate(3px, -3px); }
.person__bio { margin-top: 18px; max-width: 46ch; color: #4E4A45; font-size: 1.08rem; }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--bone); padding: clamp(96px, 16vh, 180px) var(--gutter) 28px; overflow: hidden; }
.contact__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.contact__title { font-weight: 300; font-size: clamp(3.2rem, 8vw, 6rem); line-height: 1; letter-spacing: -.04em; }
.contact__links { display: grid; gap: 10px; justify-items: start; font-size: 1.1rem; color: #CFC9BF; }
.contact__links a { position: relative; }
.contact__links a:hover { color: #fff; }
.contact__mail { font-size: clamp(1.4rem, 2.2vw, 2.2rem); color: var(--bone); letter-spacing: -.02em; }
.contact__mail::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--copper); transform-origin: left; transition: transform .5s var(--ease); }
.contact__mail:hover::after { transform: scaleX(.3); }
.contact__mark {
  margin-top: clamp(80px, 14vh, 160px);
  font: 400 clamp(4rem, 19.5vw, 22rem)/.8 var(--serif); letter-spacing: -.03em;
  color: var(--copper); white-space: nowrap; text-align: center;
}
.js .contact__mark { clip-path: inset(100% 0 0 0); transition: clip-path 1.8s var(--ease); }
.js .contact__mark.in { clip-path: inset(-10% 0 -10% 0); }
.contact__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--mist); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav nav { display: none; }
  .nav { grid-template-columns: 1fr auto; }
  .pill { height: 42px; padding: 0 20px; font-size: .95rem; }
  .co { position: relative; height: auto; min-height: 0; }
  .co__inner { grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 64px; }
  .co:nth-child(odd of .co) .co__media { order: 0; }
  .co__media { height: auto; max-height: none; aspect-ratio: 4 / 3; }
  .statement__text { grid-column: 1 / -1; }
  .statement__figure { grid-column: 1 / -1; }
  .team__grid, .contact__top { grid-template-columns: 1fr; }
  .proof__list { grid-template-columns: 1fr; }
  .proof__item + .proof__item { border-left: 0; border-top: 1px solid var(--line-light); }
  .proof__item a, .proof__item:first-child a { padding: 28px 0; grid-template-rows: 64px auto auto; }
  .proof__item a:hover { background: none; }
}
@media (max-width: 640px) {
  :root { --nav-h: 68px; }
  .hero { min-height: 600px; }
  .hero__media, .hero__shade { inset: 0 0 34% 0; }
  .strip { grid-template-columns: 1fr; min-height: 0; }
  .strip__item { border-left: 0; border-top: 1px solid var(--line-dark); }
  .strip__item:first-child { border-top: 0; }
  .strip__item a, .strip__item:nth-child(2) a, .strip__item:nth-child(3) a {
    text-align: left; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px; padding: 14px var(--gutter);
  }
  .strip__num { font-size: 1rem; margin: 0; }
  .strip__name { font-size: 1.15rem; }
  .strip__what { font-size: .8rem; }
  .strip__item::before { width: 64px; }
  .hero__title { font-size: clamp(2.4rem, 10.5vw, 3.2rem); }
  .co__list li { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-clip] img, .js .contact__mark { opacity: 1; transform: none; clip-path: none; }
  .hero__title .line > span, .hero__media img { transform: none; }
  .statement__text .w { color: var(--ink); }
}
